-
Notifications
You must be signed in to change notification settings - Fork 393
Description
The Problem
I have been trying to work out why my coverage reports were empty when my project is built by GitHub actions. Searching the issues and doc's here I did find the information about the Deterministic workaround (here). Initially I dismissed the workaround because it states in the title 'only for .NET Core SDK < 3.1.100'. My project is using SDK 3.1.404. When I couldn't find any other hints I decided to try the workaround anyway, and that does in fact fix the issue.
More Information
Interestingy, the issue only seems to present itself when I add SourceLink support to the project being tested, regardless of the presence of the ContinuousIntegrationBuild property in the project.
I have a repository where I did my testing for this, which you're welcome to check. You'll see that I was making changes in steps to make the project closer to that of my "real" project until I found where the coverage report became empty. Then I added the branch 'deterministic-workaround' to test the workaround. You can see the results in the Actions tab.
Suggested Solution
In the short-term, update the documentation to make it clear that the workaround does apply to 3.1.404, at least if SourceLink is present. I don't know whether there is also a code-fix that can be made later.