-
Notifications
You must be signed in to change notification settings - Fork 389
No output generated #6
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
@Structed pls target |
@tonerdo Hey :) I have the same problem targeting netcoreapp2.0. |
What's the output of |
Also, what test framework are you using? |
I also tried the latest stable version of the .net core sdk. .NET Command Line Tools (2.1.300-preview1-008174) Runtime Environment: |
So my only thought is Coverlet is unable to find a suitable assembly to instrument. What's the structure of your solution? |
Hi, I have similar problem, but I get error in output: Calculating coverage result... But file exists with extension .dll: @tonerdo, can you advice? |
If you want to check on failing project: https://github.com/mihasic/LuceneSearch/tree/coverlet In my case the file is being created, but, probably, at the later stage |
Try out the new NuGet package and let me know how it goes https://www.nuget.org/packages/coverlet.msbuild/1.0.1 |
works for me, thank you |
@jeankedotcom I think that happens when calculating the summary result. The coverage results file should still have been generated |
@tonerdo you are right, the coverage file exists. But if the "dotnet test" command fails it will break my CI build on GitLab. Can I disable the summary report? |
Hmmm... there's currently no way to disable summary, I should probably add that option. Is there a way for you to ignore that error? |
I will check if I can ignore the error. Something like this? result.Add(System.IO.Path.GetFileNameWithoutExtension(mod.Key), totalLines == 0 ? totalLines : (linesCovered * 100) / totalLines); |
Thanks @tonerdo for accepting the pull request. To whom it may concern, while awaiting the arrival of the next version of the nuget package I am ignoring the error return code of the "dotnet test" command on Linux in my GitLab CI by "or-ing" it with true. So instead of using:
I am using:
|
@jeankedotcom I'm working with weekly release cycles. All fixes that make it in this week will be release come next Monday |
@jeankedotcom new NuGet release which should completely fix this isse: https://www.nuget.org/packages/coverlet.msbuild/1.0.2. Feel free to reopen if any more errors show up |
I have installed the package to my test project, ran
dotnet test /p:CollectCoverage=true
as well asdotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
, but no code coverage report was generated.dotnet SDK: 1.0.4
Taregt Framework: netcoreapp1.1
xunit: 2.3.1
coverlet.msbuild: 1.0.0
The text was updated successfully, but these errors were encountered: