Skip to content
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

Coverlet does not generate any output files in cake #30

Closed
soroshsabz opened this issue Dec 10, 2019 · 5 comments
Closed

Coverlet does not generate any output files in cake #30

soroshsabz opened this issue Dec 10, 2019 · 5 comments
Labels
question Further information is requested

Comments

@soroshsabz
Copy link

ITNOA

I have a project in GitHub and have a cake file that use some code like below


        var coverletSettings = new CoverletSettings {
            CollectCoverage = true,
            CoverletOutputFormat = CoverletOutputFormat.opencover,
            CoverletOutputDirectory = Directory(@"./coverage-test/"),
            CoverletOutputName = coverageResultsFileName
        };

        DotNetCoreTest(testProject, settings, coverletSettings);

but when i run test target, we cannot found any coverage-test directory?

Did you can help me? what is my problem?

thanks

@Romanx
Copy link
Owner

Romanx commented Dec 11, 2019

Hi there, I can't see anything wrong with the settings. Is coverlet outputting anything to the console when the tests are run?

@Romanx Romanx added the question Further information is requested label Dec 11, 2019
@soroshsabz
Copy link
Author

@Romanx Thanks very much for reply, As you can see in AppVeyor we cannot found coverage-test, in any directory?

@dweggemans
Copy link

If you forget to add coverlet.msbuild to the test project you get this behavior

@soroshsabz
Copy link
Author

After I added this package I got a "Coverlet.MSbuild.Tasks.CoverageResultTask" task was not given a value for the required parameter "InstrumenterState"

@soroshsabz
Copy link
Author

Thanks to @MarcoRossignoli I can resolved my issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants