Closed HurricanKai closed 3 years ago
Maybe something like this? https://github.com/coverlet-coverage/coverlet#usage
If you follow the template, you'll have the SDK for tests referenced, and then dotnet test
works with Expecto. Try it; it should work, since we're just calling into .Net.
Hmm, I thought I tried that, but it didn't work. Will try again, maybe I did something wrong. Will report back, thanks
I'm happy to look into it and make sure it works in return for payment of the time it takes me.
Something similar is known to work. MiniScaffold has code coverage setup for expecto tests + AltCover (instead of coverlet), but the principles are the same. You need test SDKs and the coverage tool, and then when you run tests you supply some coverage parameters, and finally turn the output into viewable reports
Hmm, all I get from codecov is
<?xml version="1.0" encoding="utf-8"?>
<coverage line-rate="1" branch-rate="1" version="1.9" timestamp="1594915816" lines-covered="0" lines-valid="0" branches-covered="0" branches-valid="0">
<sources />
<packages />
</coverage>
altcover has worked for me. Thanks :)
Is there any way of collecting code coverage?