Skip to content

Commit

Permalink
better test reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Whitton committed Jul 31, 2018
1 parent 5ec982d commit dfa0e2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ jobs:
- <<: *restore_modernizr
- run:
name: Test
environment:
CIRCLE_TEST_REPORTS: test-results
command: npx ember test -r xunit
- store_test_results:
path: test-results/wqxr-testem/
path: test-results/

deploy_production:
<<: *defaults
Expand Down
8 changes: 6 additions & 2 deletions testem.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var circleFolder = process.env.CIRCLE_TEST_REPORTS;

module.exports = {
report_file: 'test-results/wqxr-testem/wqxr-web-client-test.xml',
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
launch_in_ci: [
Expand All @@ -22,5 +23,8 @@ module.exports = {
'--window-size=1440,900'
].filter(Boolean)
}
}
},
reporter: circleFolder ? 'xunit' : 'tap',
report_file: circleFolder ? circleFolder + '/text.xml' : '',
xunit_intermediate_output: true
};

0 comments on commit dfa0e2c

Please sign in to comment.