Skip to content
Merged
Show file tree
Hide file tree
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
Feb 3, 2022
d01699a
Revert "AVRO-3360 Updated XML documentation"
Feb 3, 2022
83093e1
Merge branch 'apache:master' into master
KyleSchoonover Feb 4, 2022
c992da4
Merge branch 'apache:master' into master
KyleSchoonover Feb 10, 2022
fa5f7c2
Merge branch 'apache:master' into master
KyleSchoonover Feb 14, 2022
6989e61
Merge branch 'apache:master' into master
KyleSchoonover Feb 16, 2022
d06604a
Merge branch 'apache:master' into master
KyleSchoonover Feb 24, 2022
e05feda
AVRO-3415 Add code coverage report support for csharp
Feb 24, 2022
e5a832f
Ignore Updates and package references
Feb 25, 2022
bfb2743
Updated names
Feb 25, 2022
2b39bb0
Merge branch 'apache:master' into master
KyleSchoonover Feb 28, 2022
f8a7611
Merge branch 'apache:master' into master
KyleSchoonover Mar 9, 2022
88dbb65
Sorted packages alphabetically
KyleSchoonover Mar 9, 2022
18aed6c
Fix merge conflicts
KyleSchoonover Mar 9, 2022
a5fa2ef
Merge branch 'apache:master' into master
KyleSchoonover Mar 18, 2022
0216b4d
Merge branch 'apache:master' into master
KyleSchoonover Mar 21, 2022
590a30f
Merge Master into AVRO-3415
KyleSchoonover Mar 21, 2022
d97a23c
Merge branch 'apache:master' into master
KyleSchoonover Apr 8, 2022
e1db956
Merge branch 'apache:master' into master
KyleSchoonover Apr 13, 2022
eac7151
Merge branch 'master' into AVRO-3415
KyleSchoonover Apr 13, 2022
70209db
Mode ReportGenerator instructions for global.
KyleSchoonover Apr 13, 2022
019d341
Update versions.props
KyleSchoonover Apr 13, 2022
f2cd624
Remove path
KyleSchoonover Apr 13, 2022
0dedc00
Updated tabbing
KyleSchoonover Apr 13, 2022
e586782
Merge branch 'apache:master' into master
KyleSchoonover Apr 14, 2022
0a88ffc
Fix merge conflicts
KyleSchoonover Apr 14, 2022
5d1cc47
Cleanup version.props
KyleSchoonover Apr 14, 2022
5e318d7
Add missing settings from version.props
KyleSchoonover Apr 14, 2022
a5621d3
Updated from tabs to 2 space indents
KyleSchoonover Apr 14, 2022
0e8eb11
Added command in code block
KyleSchoonover Apr 14, 2022
fd6beb6
Fix carriage return
KyleSchoonover Apr 14, 2022
1781648
force carriage return
KyleSchoonover Apr 14, 2022
841247d
Another carriage return
KyleSchoonover Apr 14, 2022
c2cd365
Added longer path to report
KyleSchoonover Apr 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lang/csharp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,7 @@ obj/

#Test results
TestResult.xml
Coverage
TestResults

.vs/
31 changes: 31 additions & 0 deletions lang/csharp/CODECOVERAGE.md
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`
8 changes: 8 additions & 0 deletions lang/csharp/src/apache/test/Avro.test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="$(CoverletCollectorVersion)">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="$(CoverletMSBuildVersion)">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis" Version="$(MicrosoftCodeAnalysisVersion)" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="$(MicrosoftCodeAnalysisCSharpVersion)" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkVersion)" />
Expand Down
3 changes: 3 additions & 0 deletions lang/csharp/versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,12 @@

<!--
These packages are used for building, testing and code analysis. Most likely they are safe to upgrade
Please sort the packages alphabetically
-->
<PropertyGroup Label="Build, Test, Code Analysis, Benchmark Package Versions">
<BenchmarkDotNetVersion>0.13.1</BenchmarkDotNetVersion>
<CoverletCollectorVersion>3.1.2</CoverletCollectorVersion>
<CoverletMSBuildVersion>3.1.2</CoverletMSBuildVersion>
<MicrosoftBuildFrameworkVersion>17.1.0</MicrosoftBuildFrameworkVersion>
<MicrosoftBuildUtilitiesCoreVersion>17.1.0</MicrosoftBuildUtilitiesCoreVersion>
<MicrosoftCodeAnalysisVersion>4.1.0</MicrosoftCodeAnalysisVersion>
Expand Down