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

Rewired modules showing up in Coverage reports #29

Open
kmckee opened this issue Oct 2, 2024 · 1 comment
Open

Rewired modules showing up in Coverage reports #29

kmckee opened this issue Oct 2, 2024 · 1 comment

Comments

@kmckee
Copy link

kmckee commented Oct 2, 2024

When I run mix test --cover, I'm seeing rewired modules in the coverage report:

Generating cover results ...

Percentage | Module
-----------|--------------------------
    78.57% | Foo.Bar.Baz.R5115

Is this expected behavior? I'm thinking they should be excluded, but I'm hesitant to start adding generated modules to my coverage_exclusions.

@kmckee
Copy link
Author

kmckee commented Oct 2, 2024

For anyone else that encounters this, you can add the following to your coverage_exclusions to ignore any coverage reports for rewired modules: ~r"\.R\d+$"

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

No branches or pull requests

1 participant