[ 
https://issues.apache.org/jira/browse/AVRO-3415?focusedWorklogId=732831&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-732831
 ]

ASF GitHub Bot logged work on AVRO-3415:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Feb/22 02:55
            Start Date: 25/Feb/22 02:55
    Worklog Time Spent: 10m 
      Work Description: zcsizmadia commented on a change in pull request #1565:
URL: https://github.com/apache/avro/pull/1565#discussion_r814437926



##########
File path: lang/csharp/CODECOVERAGE.md
##########
@@ -0,0 +1,8 @@
+# C# Avro Code Coverage
+
+The following instructions should be followed in order to create a code 
coverage report locally.  Please note that this assumes you are running on 
Windows OS and that your local nuget cache is under you user profile.
+
+1. Open a command prompt
+2. Navigate to the test project `avro\lang\csharp\src\apache\test`
+3. Run the following test command `dotnet test --results-directory 
./TestResults --collect:"XPlat Code Coverage"`
+4. Generate the report with the following command `dotnet 
%USERPROFILE%\.nuget\packages\reportgenerator\5.0.4\tools\net6.0\ReportGenerator.dll
 "-reports:./TestResults/*/coverage.cobertura.xml" "-targetdir:./Coverage/" 
-reporttypes:HTML`

Review comment:
       This could be `reportgenerator 
-reports:./TestResults/*/coverage.cobertura.xml" "-targetdir:./Coverage/ 
-reporttypes:HTML`
   However this requires a one time install of: `dotnet tool install --global 
dotnet-reportgenerator-globaltool`




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 732831)
    Time Spent: 1h  (was: 50m)

> Add C# code coverage support
> ----------------------------
>
>                 Key: AVRO-3415
>                 URL: https://issues.apache.org/jira/browse/AVRO-3415
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: csharp
>            Reporter: Kyle Schoonover
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> This will add the following dependencies to the test project:
> coverlet.collector version 3.1.2
> coverlet.msbuild version 3.1.2
> ReportGenerator version 5.0.4



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to