Skip to content

Commit a40dfd1

Browse files
committed
add continue-on-error
1 parent 01cee5f commit a40dfd1

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/bat.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ jobs:
2828
2929
- name: Run MATLAB tests for test results summary
3030
uses: ./
31+
continue-on-error: true
3132

3233
# - name: Run MATLAB Tests
3334
# uses: ./
3435
# with:
3536
# source-folder: sample
3637
# startup-options: -logfile output.log
38+
# continue-on-error: true
3739

3840
# - name: Verify option application
3941
# run: |
@@ -61,6 +63,7 @@ jobs:
6163
# use-parallel: true
6264
# output-detail: Detailed
6365
# logging-level: Detailed
66+
# continue-on-error: true
6467

6568
# - name: Verify artifacts generation
6669
# run: |

sample/TheTruth.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ function testAssumptionFailure(testCase)
1010
end
1111

1212
function testVerificationFailure(testCase)
13+
% Two verifications to show that the test continues after a verification failure
14+
testCase.verifyEqual(1+1, 11);
1315
testCase.verifyEqual(1+1, 11);
1416
end
1517

1618
function testAssertionFailure(testCase)
19+
% Two assertions to show that the test ends after an assertion failure
20+
testCase.assertEqual(1+1, 11);
1721
testCase.assertEqual(1+1, 11);
1822
end
1923

src/testResultsSummary.unit.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ describe('summaryGeneration', () => {
3333

3434
// Get OS information and set paths
3535
const os = require('os').platform().toLowerCase();
36-
console.log('Detected OS:', os);
3736
let osName = "";
3837
let workspaceParent = "";
3938

@@ -56,8 +55,6 @@ describe('summaryGeneration', () => {
5655
const artifactFileName = 'matlabTestResults.json';
5756
const sourceFilePath = path.join(__dirname, 'test-data', 'testResultsArtifacts', 't1', osName, artifactFileName);
5857
const destinationFilePath = path.join(process.env.RUNNER_TEMP, artifactFileName);
59-
console.log('Copying test data from:', sourceFilePath);
60-
console.log('Copying test data to:', destinationFilePath);
6158

6259
try {
6360
fs.copyFileSync(sourceFilePath, destinationFilePath);

0 commit comments

Comments
 (0)