Skip to content

Commit

Permalink
Dump raw application and testinfra output in CI
Browse files Browse the repository at this point in the history
Ensure developers are able to access raw test runner results for
debugging.

(cherry picked from commit d50519f)
  • Loading branch information
msheiny authored and redshiftzero committed Jan 26, 2018
1 parent b858736 commit 652b274
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ jobs:
- store_artifacts:
path: /root/sd/junit

- store_artifacts:
path: /root/sd/raw-test-output

workflows:
version: 2
securedrop_ci:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ securedrop/static/.webassets-cache

# Skip over CI junit files
junit/
raw-test-output/
*results.xml

# Virtualenv on tails
Expand Down
14 changes: 14 additions & 0 deletions molecule/aws/side_effect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
path: "../../{{ item }}"
with_items:
- junit
- raw-test-output

- name: Dig out existing junit test results
find:
Expand Down Expand Up @@ -68,6 +69,19 @@
ignore_errors: true
no_log: true

- name: Dump raw test output
copy:
dest: "../../raw-test-output/{{item.type}}_tests.raw"
content: "{{ item.result }}"
with_items:
- type: app
result: "{{ app_test_register }}"
- type: testinfra
result: "{{ testinfra_results }}"
become: no
no_log: true
delegate_to: localhost

- name: Combine tests for export
shell: ./testinfra/combine-junit.py ./*results.xml > ./junit/junit.xml
args:
Expand Down

0 comments on commit 652b274

Please sign in to comment.