-
Notifications
You must be signed in to change notification settings - Fork 389
NaN% in cover report #586
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
Comments
Try to add project path coverlet .\bin\Debug\whatever\whatever.dll --target "dotnet" --targetargs "test PROJECT TEST PATH --nobuild" Seem that test doesn't run...so no coverage results. like in a guide https://github.com/tonerdo/coverlet#global-tool |
Tests runs well except coverage results, more details shows below. $ dotnet tool install --global coverlet.console cat << \EOF >> ~/.bash_profile Add .NET Core SDK toolsexport PATH="$PATH:/root/.dotnet/tools" You can add it to the current session by running the following command: export PATH="$PATH:/root/.dotnet/tools" You can invoke the tool using the following command: coverlet Calculating coverage result... +---------+------+--------+--------+ Job succeeded |
ok @leyou240 can you try to enable logging https://github.com/tonerdo/coverlet/blob/master/Documentation/Troubleshooting.md#coverlet-global-tool? |
I've added a new section with know issue maybe you're affected by this one https://github.com/tonerdo/coverlet/blob/master/Documentation/KnowIssues.md#1-vstest-stops-process-execution-earlydotnet-test |
@MarcoRossignoli thx. This make sense, cause I use RabbitMQ to test. |
check this #573 (comment) |
any news? |
Close for stale conversation(I think that the issue here is the know issue due to RabbitMQ slow shutdown), feel free to re-open if needed. |
I'm newbie to use coverlet into my ci build. And use
coverlet .\bin\Debug\whatever\whatever.dll --target "dotnet" --targetargs "test --nobuild"
I use it on windows works well, but unfortunately on linux where ci run show NaN% coverage and Total also get error that all is 100%. Below is generated report.
Calculating coverage result...
Generating report '/path/coverage.json'
+--------+------+--------+--------+
| Module | Line | Branch | Method |
+--------+------+--------+--------+
+---------+------+--------+--------+
| | Line | Branch | Method |
+---------+------+--------+--------+
| Total | 100% | 100% | 100% |
+---------+------+--------+--------+
| Average | NaN% | NaN% | NaN% |
+---------+------+--------+--------+
The text was updated successfully, but these errors were encountered: