-
Notifications
You must be signed in to change notification settings - Fork 1.7k
AVRO-3415: Add code coverage report support for csharp #1565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
b8601c0
AVRO-3360 Updated XML documentation
d01699a
Revert "AVRO-3360 Updated XML documentation"
83093e1
Merge branch 'apache:master' into master
KyleSchoonover c992da4
Merge branch 'apache:master' into master
KyleSchoonover fa5f7c2
Merge branch 'apache:master' into master
KyleSchoonover 6989e61
Merge branch 'apache:master' into master
KyleSchoonover d06604a
Merge branch 'apache:master' into master
KyleSchoonover e05feda
AVRO-3415 Add code coverage report support for csharp
e5a832f
Ignore Updates and package references
bfb2743
Updated names
2b39bb0
Merge branch 'apache:master' into master
KyleSchoonover f8a7611
Merge branch 'apache:master' into master
KyleSchoonover 88dbb65
Sorted packages alphabetically
KyleSchoonover 18aed6c
Fix merge conflicts
KyleSchoonover a5fa2ef
Merge branch 'apache:master' into master
KyleSchoonover 0216b4d
Merge branch 'apache:master' into master
KyleSchoonover 590a30f
Merge Master into AVRO-3415
KyleSchoonover d97a23c
Merge branch 'apache:master' into master
KyleSchoonover e1db956
Merge branch 'apache:master' into master
KyleSchoonover eac7151
Merge branch 'master' into AVRO-3415
KyleSchoonover 70209db
Mode ReportGenerator instructions for global.
KyleSchoonover 019d341
Update versions.props
KyleSchoonover f2cd624
Remove path
KyleSchoonover 0dedc00
Updated tabbing
KyleSchoonover e586782
Merge branch 'apache:master' into master
KyleSchoonover 0a88ffc
Fix merge conflicts
KyleSchoonover 5d1cc47
Cleanup version.props
KyleSchoonover 5e318d7
Add missing settings from version.props
KyleSchoonover a5621d3
Updated from tabs to 2 space indents
KyleSchoonover 0e8eb11
Added command in code block
KyleSchoonover fd6beb6
Fix carriage return
KyleSchoonover 1781648
force carriage return
KyleSchoonover 841247d
Another carriage return
KyleSchoonover c2cd365
Added longer path to report
KyleSchoonover File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,5 +52,7 @@ obj/ | |
|
|
||
| #Test results | ||
| TestResult.xml | ||
| Coverage | ||
| TestResults | ||
|
|
||
| .vs/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| <!-- | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * https://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| --> | ||
| # C# Avro Code Coverage | ||
|
|
||
| The following instructions should be followed in order to create a code coverage report locally. | ||
|
|
||
| 1. Open a command prompt | ||
| 2. Install ReportGenerator globally\ | ||
| a. Run the following command line: `dotnet tool install --global dotnet-reportgenerator-globaltool --version 5.1.4 --add-source https://www.nuget.org/packages/`\ | ||
| b. The latest version can be found at [Nuget ReportGenerator](https://www.nuget.org/packages/dotnet-reportgenerator-globaltool/) | ||
| 3. Navigate to the test project `avro\lang\csharp\src\apache\test` | ||
| 4. Run the following test command `dotnet test --results-directory ./TestResults --collect:"XPlat Code Coverage"` | ||
| 5. Generate the report with the following command `ReportGenerator "-reports:./TestResults/*/coverage.cobertura.xml" "-targetdir:./Coverage/" -reporttypes:HTML` | ||
| 6. Open Report under `avro\lang\csharp\src\apache\test\Coverage\index.html` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.