diff --git a/.github/workflows/cxbuild.yml b/.github/workflows/cxbuild.yml index 9a12682..477c674 100644 --- a/.github/workflows/cxbuild.yml +++ b/.github/workflows/cxbuild.yml @@ -8,6 +8,7 @@ jobs: steps: - uses: quenktechnologies/.github/actions/node/build@master - run: npm test # run tests (configured to use jest-junit reporter) + - run: cat results.json - name: Test Report uses: dorny/test-reporter@v1 if: success() || failure() # run this step even if previous step failed diff --git a/results.json b/results.json new file mode 100644 index 0000000..b6b6513 --- /dev/null +++ b/results.json @@ -0,0 +1,77 @@ +{ + "stats": { + "suites": 1, + "tests": 3, + "passes": 2, + "pending": 0, + "failures": 1, + "start": "2023-08-14T17:07:15.976Z", + "end": "2023-08-14T17:07:15.980Z", + "duration": 4 + }, + "tests": [ + { + "title": "should work", + "fullTitle": "main should work", + "file": "/home/master/Code/ga-test/test/main_test.js", + "duration": 0, + "currentRetry": 0, + "speed": "fast", + "err": {} + }, + { + "title": "should work good", + "fullTitle": "main should work good", + "file": "/home/master/Code/ga-test/test/main_test.js", + "duration": 0, + "currentRetry": 0, + "speed": "fast", + "err": {} + }, + { + "title": "should fail ", + "fullTitle": "main should fail ", + "file": "/home/master/Code/ga-test/test/main_test.js", + "duration": 0, + "currentRetry": 0, + "err": { + "stack": "Error: fail != working\n at Context. (test/main_test.js:14:11)\n at process.processImmediate (node:internal/timers:476:21)", + "message": "fail != working" + } + } + ], + "pending": [], + "failures": [ + { + "title": "should fail ", + "fullTitle": "main should fail ", + "file": "/home/master/Code/ga-test/test/main_test.js", + "duration": 0, + "currentRetry": 0, + "err": { + "stack": "Error: fail != working\n at Context. (test/main_test.js:14:11)\n at process.processImmediate (node:internal/timers:476:21)", + "message": "fail != working" + } + } + ], + "passes": [ + { + "title": "should work", + "fullTitle": "main should work", + "file": "/home/master/Code/ga-test/test/main_test.js", + "duration": 0, + "currentRetry": 0, + "speed": "fast", + "err": {} + }, + { + "title": "should work good", + "fullTitle": "main should work good", + "file": "/home/master/Code/ga-test/test/main_test.js", + "duration": 0, + "currentRetry": 0, + "speed": "fast", + "err": {} + } + ] +} \ No newline at end of file