We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87a5a09 commit ab2352eCopy full SHA for ab2352e
.github/workflows/matlab_test_and_coverage.yaml
@@ -59,9 +59,12 @@ jobs:
59
}
60
61
- name: Code coverage
62
+ if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
63
+ # no coverage on windows as long as MOcov does not support it
64
+ # see https://github.com/MOcov/MOcov/issues/28
65
uses: codecov/codecov-action@v3
66
with:
67
file: coverage.xml # optional
- flags: matlab # optional
68
+ flags: ${{ matrix.os }}_matlab-${{ matrix.version }}
69
name: codecov-umbrella # optional
70
fail_ci_if_error: true # optional (default = false)
run_tests.m
@@ -17,12 +17,19 @@ function run_tests()
17
folder_to_cover = fullfile(pwd, 'src');
18
19
test_folder = fullfile(pwd, 'tests');
20
+
21
+ addpath(genpath(folder_to_cover));
22
- success = moxunit_runtests(test_folder, ...
- '-verbose', '-recursive', '-with_coverage', ...
23
- '-cover', folder_to_cover, ...
24
- '-cover_xml_file', 'coverage.xml', ...
25
- '-cover_html_dir', fullfile(pwd, 'coverage_html'));
+ if ispc
+ success = moxunit_runtests(test_folder);
26
+ else
27
+ success = moxunit_runtests(test_folder, ...
28
+ '-verbose', '-recursive', '-with_coverage', ...
29
+ '-cover', folder_to_cover, ...
30
+ '-cover_xml_file', 'coverage.xml', ...
31
+ '-cover_html_dir', fullfile(pwd, 'coverage_html'));
32
+ end
33
34
fileID = fopen('test_report.log', 'w');
35
if success
0 commit comments