Skip to content

Add ignore_modules option - #20

Open
hmy3743 wants to merge 2 commits into
dariodf:masterfrom
hmy3743:master
Open

Add ignore_modules option#20
hmy3743 wants to merge 2 commits into
dariodf:masterfrom
hmy3743:master

Conversation

@hmy3743

@hmy3743 hmy3743 commented May 19, 2023

Copy link
Copy Markdown

Add ignore_modules option like Mix.Tasks.Test.Coverage

@dariodf dariodf left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the very late review. I like the code, but have a suggestion on how to test it. I might take it on myself later this week.

Comment thread test/lcov_ex_test.exs
test_coverage: [
tool: LcovEx,
ignore_paths: ["deps/"],
ignore_modules: [ExampleProject.ExampleIgnoreModule, ~r/.*ExampleIgnoreRegex.*/]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to do a separate test for the new feature, and in that one assert that the module is not in the coverage file (instead of testing the omission in the print).

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

Successfully merging this pull request may close these issues.

2 participants