Can't remove Context.cs from code coverage

I’m trying to remove this Context.cs file from my code coverage results.

To ignore other files I simply did so by adding them to the Coverage Exclusions.


Yet for this particular file it doesn’t seem to work, what am I doing wrong here?

@raschmitt have you tried providing the full path as it is shown on your first screenshot?


Just tried, and it works.

But why does it need to be a full path for this specif file if it works just with the file name for Startup.cs and Program.cs?

Feel free to check best practices for file exclusion here - Patterns