Skip to content

Commit

Permalink
Write actual parsed files for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Oct 4, 2022
1 parent 8bd6b21 commit 2f4826e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci-cd.yml
Expand Up @@ -103,6 +103,9 @@ jobs:
name: Changed expectations
path: changed-expectations.zip

- name: Create dir
run: mkdir test-results

- name: PyTest
env:
PYTHONPATH: ..
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions python/test/test_action_script.py
Expand Up @@ -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]))
Expand Down

0 comments on commit 2f4826e

Please sign in to comment.