diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 2b68ecee..1e20bf42 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -103,6 +103,9 @@ jobs: name: Changed expectations path: changed-expectations.zip + - name: Create dir + run: mkdir test-results + - name: PyTest env: PYTHONPATH: .. @@ -135,6 +138,7 @@ jobs: name: Test Results (python-${{ matrix.python-version }}, ${{ matrix.os }}) path: | test-results/*.xml + test-results/parsed.txt unit-test-results.json publish-dockerfile: diff --git a/python/test/test_action_script.py b/python/test/test_action_script.py index 13eaef96..8e59bb5c 100644 --- a/python/test/test_action_script.py +++ b/python/test/test_action_script.py @@ -807,6 +807,8 @@ def test_parse_files(self): trx_files_glob=str(test_files_path / 'trx' / '**' / '*.trx')) with mock.patch('publish_test_results.logger') as l: actual = parse_files(settings, gha) + with open('../../test-results/parsed.txt', mode='wt') as w: + w.write(str(actual)) self.assertEqual(5, len(l.info.call_args_list)) self.assertTrue(any([call.args[0].startswith(f'Reading JUnit files {settings.junit_files_glob} (26 files, ') for call in l.info.call_args_list]))