|
10 | 10 | sel = sel & ~HasTag("windows"); |
11 | 11 | end |
12 | 12 |
|
13 | | -reportDir = fullfile(plan.RootFolder, ".buildtool"); |
| 13 | +reportDir = fullfile(plan.RootFolder, 'reports'); |
| 14 | +if ~isfolder(reportDir) |
| 15 | + mkdir(reportDir); |
| 16 | +end |
14 | 17 | pkg_root = fullfile(plan.RootFolder, "+stdlib"); |
15 | 18 | test_root = fullfile(plan.RootFolder, "test"); |
16 | 19 |
|
|
45 | 48 | Selector=sel, ... |
46 | 49 | SourceFiles=pkg_root, ... |
47 | 50 | RunOnlyImpactedTests=stdlib.checkout_license("MATLAB Test"), ... |
48 | | - TestResults=reportDir + "/TestResults_main.xml", Strict=true); |
| 51 | + TestResults=fullfile(reportDir, 'TestResults_main.xml'), Strict=true); |
49 | 52 |
|
50 | 53 | plan("test").Description = "Run all self-tests"; |
51 | 54 |
|
|
67 | 70 | plan("test:java_exe") = matlab.buildtool.tasks.TestTask(... |
68 | 71 | test_root, Description="test Java exe targets", ... |
69 | 72 | Tag = "java_exe", Dependencies="exe", Strict=true); |
| 73 | +end |
70 | 74 |
|
| 75 | +if ~isMATLABReleaseOlderThan('R2024a') |
71 | 76 |
|
72 | | - plan("coverage") = matlab.buildtool.tasks.TestTask(test_root, ... |
| 77 | + plan('coverage') = matlab.buildtool.tasks.TestTask(test_root, ... |
73 | 78 | Description="Run code coverage", ... |
74 | | - Dependencies="exe", ... |
| 79 | + Dependencies='exe', ... |
75 | 80 | SourceFiles=pkg_root, ... |
76 | 81 | Strict=false); |
| 82 | + plan('coverage').DisableIncremental = true; |
77 | 83 |
|
78 | 84 | coverageReport = fullfile(reportDir, 'coverage-report.html'); |
79 | 85 | if stdlib.checkout_license("MATLAB Test") |
|
0 commit comments