diff --git a/MOxUnit/moxunit_runtests.m b/MOxUnit/moxunit_runtests.m index 29c4fb8..90c2fda 100644 --- a/MOxUnit/moxunit_runtests.m +++ b/MOxUnit/moxunit_runtests.m @@ -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=[]; @@ -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;