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 476583c commit 7d8cbfcCopy full SHA for 7d8cbfc
test/test_nomex.m
@@ -2,15 +2,18 @@ function test_nomex()
2
import matlab.unittest.TestSuite
3
import matlab.unittest.selectors.HasTag
4
5
-suite = TestSuite.fromFolder(fileparts(mfilename('fullpath')));
+cwd = fileparts(mfilename('fullpath'));
6
7
-sel = ~HasTag("exe") & ~HasTag("mex") & ~HasTag("symlink");
+root = fileparts(cwd);
8
+addpath(root)
9
-suite = suite.selectIf(sel);
10
+suite = TestSuite.fromFolder(cwd);
11
+
12
+sel = ~HasTag("exe") & ~HasTag("mex");
13
-runner = testrunner();
14
+suite = suite.selectIf(sel);
15
-r = run(runner, suite);
16
+r = run(testrunner(), suite);
17
18
assert(~isempty(r), "No tests were run")
19
assertSuccess(r)
0 commit comments