File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
.github/workflows/composite-nomex Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 4444 if : ${{ matrix.release < 'R2023b' }}
4545 uses : matlab-actions/run-command@v2
4646 with :
47- command : test_nomex
48- startup-options : -sd ${{ github.workspace }}/test - logfile ${{ matrix.release }}-${{ runner.os }}-test.log
47+ command : run('test/ test_nomex.m')
48+ startup-options : -logfile ${{ matrix.release }}-${{ runner.os }}-test.log
4949 # test/test_nomex.m adds path internally
5050
5151 - name : upload logfile
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Matlab R2019b is the minimum required due to use of
1414[ arguments] ( https://www.mathworks.com/help/matlab/ref/arguments.html )
1515syntax.
1616URLs (e.g. https://, s3:// and similar) are treated as not existing.
17- The self-tests require at least Matlab R2021b and can be run from the matlab-stdlib/ directory.
17+ The self-tests require at least Matlab R2021a and can be run from the matlab-stdlib/ directory.
1818
1919``` matlab
2020%% Matlab >= R2023a
Original file line number Diff line number Diff line change 11function test_nomex()
2+ import matlab .unittest .TestRunner
23import matlab .unittest .selectors .HasTag
34
4- cwd = fileparts(mfilename( ' fullpath ' ) );
5+ sel = ~HasTag( " exe " ) & ~HasTag( " mex " );
56
7+ cwd = fileparts(mfilename(' fullpath' ));
68root = fileparts(cwd );
79addpath(root )
810
911if isMATLABReleaseOlderThan(' R2022b' )
1012 suite = testsuite(cwd );
1113else
12- suite = testsuite(cwd , InvalidFileFoundAction= " error" );
14+ suite = testsuite(cwd , ' InvalidFileFoundAction' , " error" );
1315end
1416
15- sel = ~HasTag(" exe" ) & ~HasTag(" mex" );
16-
1717suite = suite .selectIf(sel );
1818
19- r = run(testrunner(), suite );
19+ runner = TestRunner .withTextOutput ;
20+ r = runner .run(suite );
2021
2122assert(~isempty(r ), " No tests were run" )
2223assertSuccess(r )
24+
2325end
You can’t perform that action at this time.
0 commit comments