Skip to content

Commit 44dbed2

Browse files
committed
ci azure template
1 parent 66b000e commit 44dbed2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

TestAll.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@
2020
results = runner.run(suite);
2121
assert(~isempty(results), "no tests found")
2222

23-
nfailed = nnz([results.Failed]);
24-
assert(nfailed == 0, '%d test(s) failed.', nfailed)
23+
assertSuccess(results)

azure-pipelines.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
variables:
2+
CI: true
3+
14
pool:
25
vmImage: ubuntu-latest
36
steps:
47
- task: InstallMATLAB@0
58
inputs:
69
release: R2020a
7-
- task: RunMATLABTests@0
10+
- task: RunMATLABCommand@0
811
inputs:
9-
testResultsJUnit: test-results/results.xml
10-
codeCoverageCobertura: code-coverage/coverage.xml
12+
command: TestAll
1113
- task: PublishTestResults@2
1214
condition: succeededOrFailed()
1315
inputs:

0 commit comments

Comments
 (0)