Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
cc-test-reporter changes
Browse files Browse the repository at this point in the history
- coverage directory is now created at the root of the project because cc-test-reporter does not accept paths and is garbage
- test-results directory is now created at the root of the project because the build directory is no longer used because cc-test-reporter does not accept paths and is garbage.
  • Loading branch information
Froilan Irizarry committed Nov 7, 2017
1 parent 864db06 commit 92e14e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
- run:
name: upload-test-report
command: |
./cc-test-reporter after-build -t lcov -p /home/circleci/code-gov-api/build --exit-code $?
./cc-test-reporter after-build -t lcov --exit-code $?
- store_test_results:
path: build/test-results/results.xml
path: test-results/results.xml
- store_artifacts:
path: test-results.xml
prefix: tests
- store_artifacts:
path: build/coverage
path: coverage
prefix: coverage

# Install Cloud Foundry cli (cf) before deploy step. cf is used to push project to Cloud.gov
Expand Down
2 changes: 1 addition & 1 deletion .nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"exclude": [
"test/**/*.js"
],
"report-dir": "./build/coverage",
"report-dir": "./coverage",
"reporter": [
"lcov"
]
Expand Down
2 changes: 1 addition & 1 deletion test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
--reporter mocha-junit-reporter
--recursive
--reporter-options mochaFile=./build/test-results/results.xml
--reporter-options mochaFile=./test-results/results.xml

0 comments on commit 92e14e4

Please sign in to comment.