#1439  Support for .NET Reports for tests, code coverage, and linting
Closed
Cibbi opened 10 months ago

Hi,

It would be awesome to have direct support for reports generated in an usual .NET environment for tests, code coverage and linting.

In my current setup i generate test reports in JUnit format, but normally tests are in TRX format, having native TRX support would remove the need of an extra nuget package. For code coverage, i need to convert the Coverlet reports to Clover to get it working, resulting in need to add an external tool to do the conversion, having Coverlet coverage result support would remove the extra step. For linting, i currently have no workaround currently as i did not find premade cli tools to convert Roslynator source analyzer reports to something that could be given to OneDev.

I can give example reports if needed

Cibbi changed fields 10 months ago
Name Previous Value Current Value
Priority
Normal
Minor
Robin Shen commented 10 months ago

Yes, please attach example reports.

Cibbi commented 10 months ago

TRX unit test results report: Cibbi_DESKTOP-2023-06-28_10_58_00.trx

Code coverage report: coverage.cobertura_2.xml

Roslynator linting report: roslyn.xml

There's also an alternative for linting which uses the Resharper command line tool from Jetbrains that may also be worth looking for resharper_2.xml

The Resharper command line tool can also output in SARIF format, which is a more generic format resharper-sarif.json

Robin Shen commented 10 months ago

Thanks for the info.

Robin Shen changed state to 'Closed' 8 months ago
Previous Value Current Value
Open
Closed
Robin Shen commented 8 months ago

Build #4051 now natively supports to publish cobertura, trx and roslynator reports.

issue 1 of 1
Type
New Feature
Priority
Minor
Assignee
Issue Votes (1)
Watchers (5)
Reference
onedev/server#1439
Please wait...
Page is in error, reload to recover