Skip to content

Commit

Permalink
API: _runtests.m Add -cover-exclude support
Browse files Browse the repository at this point in the history
Added to MOcov in MOxUnit/MOcov#6.
  • Loading branch information
scottclowe committed Feb 26, 2016
1 parent ad952b3 commit ef6b65f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions MOxUnit/moxunit_runtests.m
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ function write_junit_xml(fn, test_report)
params.junit_xml=[];
params.add_recursive=false;
params.cover=[];
params.cover_exclude={};
params.cover_xml_file=[];
params.junit_xml_file=[];
params.cover_json_file=[];
Expand Down Expand Up @@ -264,6 +265,14 @@ function write_junit_xml(fn, test_report)
k=k+1;
params.cover_method=varargin{k};

case '-cover_exclude'
if k==n
error('moxunit:missingParameter',...
'Missing parameter after option ''%s''',arg);
end
k=k+1;
params.cover_exclude(end+1)=varargin(k);

case '-recursive'
params.add_recursive=true;

Expand Down

0 comments on commit ef6b65f

Please sign in to comment.