Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Add ability to specify patterns to be excluded from coverage report #6
Conversation
scottclowe
added some commits
Feb 22, 2016
nno
and 1 other
commented on an outdated diff
Feb 25, 2016
| @@ -67,7 +86,9 @@ | ||
| if ~ignore_fn | ||
| path_fn=fullfile(root_dir, fn); | ||
| - if isdir(path_fn) | ||
| + if ~isempty(regexp(fn,exclude_re,'once')); |
nno
Contributor
|
nno
and 1 other
commented on an outdated diff
Feb 25, 2016
| @@ -67,7 +86,9 @@ | ||
| if ~ignore_fn | ||
| path_fn=fullfile(root_dir, fn); | ||
| - if isdir(path_fn) | ||
| + if ~isempty(regexp(fn,exclude_re,'once')); | ||
| + continue; | ||
| + elseif isdir(path_fn) |
nno
Contributor
|
|
Thanks. this looks very good. I added two minor comments. |
scottclowe
added some commits
Feb 26, 2016
|
Thanks @scottclowe, looks great. I will wait for travis to finish; if it is happy, I will merge. |
|
I fixed the two issues you picked up on. Thanks for pointing them out! I would like to be able to omit both files and directories. We could have two arguments, one which files must match and another for directories but I think this is cleaner. There are two use-cases which this fix will improve
|
nno
added a commit
that referenced
this pull request
Feb 26, 2016
|
|
nno |
41ae7db
|
nno
merged commit 41ae7db
into
MOcov:master
Feb 26, 2016
1 check passed
|
Support for this API change still needs to be implemented in MOxUnit/MOxUnit. I can do that too if you'd like? |
scottclowe
added a commit
to scottclowe/MOxUnit
that referenced
this pull request
Feb 26, 2016
|
|
scottclowe |
560e36e
|
scottclowe
referenced this pull request
in MOxUnit/MOxUnit
Feb 26, 2016
Merged
API: Add support for -coverage_exclude input #22
|
@scottclowe, thanks for the offer; I would appreciate it if you could implement that in MOxUnit and send a PR. |
|
@scottclowe sent out a PR at MOxUnit/MOxUnit#22 |
scottclowe
added a commit
to scottclowe/MOxUnit
that referenced
this pull request
Feb 26, 2016
|
|
scottclowe |
3394aee
|
scottclowe
added a commit
to scottclowe/MOxUnit
that referenced
this pull request
Feb 26, 2016
|
|
scottclowe |
ef6b65f
|
scottclowe
added a commit
to scottclowe/MOxUnit
that referenced
this pull request
Feb 26, 2016
|
|
scottclowe |
c992947
|
scottclowe commentedFeb 22, 2016
Closes #4.
Adds -cover_exclude option, which can be to specify patterns for directories and files which should be excluded from the coverage report. This can be used multiple times to specify multiple patterns.
The implementation method was as discussed on the thread for #4.
I have not altered README.md, so there is currently no documentation for this feature.