Skip to content

Commit

Permalink
skip coverage on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed May 2, 2023
1 parent 347027c commit 22aef8b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/matlab_test_and_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
}
- name: Code coverage
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
uses: codecov/codecov-action@v3
with:
file: coverage.xml
Expand Down
15 changes: 10 additions & 5 deletions run_tests.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ function run_tests()

addpath(fullfile(test_folder, 'utils'));

success = moxunit_runtests(test_folder, ...
'-verbose', '-recursive', '-with_coverage', ...
'-cover', folder_to_cover, ...
'-cover_xml_file', 'coverage.xml', ...
'-cover_html_dir', fullfile(pwd, 'coverage_html'));
if ispc
success = moxunit_runtests(test_folder, '-verbose');

else
success = moxunit_runtests(test_folder, ...
'-verbose', '-recursive', '-with_coverage', ...
'-cover', folder_to_cover, ...
'-cover_xml_file', 'coverage.xml', ...
'-cover_html_dir', fullfile(pwd, 'coverage_html'));
end

fileID = fopen('test_report.log', 'w');
if success
Expand Down

0 comments on commit 22aef8b

Please sign in to comment.