Skip to content

Commit

Permalink
chore(ci): persist acceptance test output (#5090)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisislawatts authored Mar 11, 2024
1 parent 208532e commit af382ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -984,13 +984,19 @@ jobs:
command: npm install
- run:
name: Running acceptance tests
no_output_timeout: 30m
command: |
<< parameters.pre_test_cmds >>
npm run test:acceptance -- --selectProjects coreCli
environment:
TEST_SNYK_FIPS: << parameters.fips >>
TEST_SNYK_COMMAND: << parameters.test_snyk_command >>
TEST_SNYK_DONT_SKIP_ANYTHING: << parameters.dont_skip_tests >>
JEST_JUNIT_OUTPUT_DIR: test/reports
- store_test_results:
path: test/reports
- store_artifacts:
path: test/reports

regression-tests:
parameters:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"watch": "npm run build-cli:dev -- --watch",
"test": "npm run test:unit && npm run test:acceptance && npm run test:tap",
"test:unit": "jest --runInBand --testPathPattern '/test(/jest)?/unit/' --reporters=jest-junit",
"test:acceptance": "jest --runInBand --testPathPattern \"/test(/jest)?/acceptance/\"",
"test:acceptance": "jest --runInBand --testPathPattern \"/test(/jest)?/acceptance/\" --reporters=jest-junit",
"test:tap": "tap -Rspec --timeout=300 test/tap/*.test.* ",
"test:smoke": "./scripts/run-smoke-tests-locally.sh",
"dev": "ts-node ./src/cli/index.ts"
Expand Down

0 comments on commit af382ea

Please sign in to comment.