build((server) test reporting): add CircleCI test reporting from mocha
This commit is contained in:
Родитель
4b2b19b04e
Коммит
db7694d7c9
|
@ -61,12 +61,18 @@ jobs:
|
|||
working_directory: 'packages/server'
|
||||
- run: 'dockerize -wait tcp://localhost:5432 -timeout 1m'
|
||||
- run:
|
||||
command: 'npm run test'
|
||||
command: 'npm run test:report'
|
||||
working_directory: 'packages/server'
|
||||
- run:
|
||||
command: 'bash <(curl -s https://codecov.io/bash)'
|
||||
working_directory: 'packages/server'
|
||||
|
||||
- store_test_results:
|
||||
path: packages/server/reports
|
||||
|
||||
- store_artifacts:
|
||||
path: packages/server/reports/test-results.xml
|
||||
|
||||
docker_build_and_deploy:
|
||||
docker:
|
||||
- image: circleci/python:3.6-buster
|
||||
|
|
|
@ -17,3 +17,5 @@ packages/viewer/example/*.js
|
|||
packages/viewer/example/*.js.map
|
||||
packages/frontend/schema.graphql
|
||||
.tool-versions
|
||||
|
||||
packages/server/reports*
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -14,7 +14,8 @@
|
|||
"scripts": {
|
||||
"dev": "cross-env NODE_ENV=development DEBUG=speckle:* nodemon ./bin/www --watch . --watch ./bin/www -e js,graphql,env",
|
||||
"dev:server:test": "cross-env NODE_ENV=test DEBUG=speckle:* node ./bin/www",
|
||||
"test": "cross-env PORT=3001 NODE_ENV=test POSTGRES_URL=postgres://localhost/speckle2_test nyc --reporter html --reporter lcov mocha -s 0 --timeout 10000 --exit"
|
||||
"test": "cross-env PORT=3001 NODE_ENV=test POSTGRES_URL=postgres://localhost/speckle2_test nyc --reporter html --reporter lcov mocha -s 0 --timeout 10000 --exit",
|
||||
"test:report": "npm run test -- --reporter mocha-junit-reporter --reporter-options mochaFile=reports/test-results.xml"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sentry/node": "^5.29.2",
|
||||
|
@ -83,6 +84,7 @@
|
|||
"http-proxy-middleware": "^1.0.6",
|
||||
"lerna": "^3.22.1",
|
||||
"mocha": "^7.2.0",
|
||||
"mocha-junit-reporter": "^2.0.2",
|
||||
"node-fetch": "^2.6.1",
|
||||
"nodemon": "^2.0.6",
|
||||
"nyc": "^15.0.1",
|
||||
|
|
Загрузка…
Ссылка в новой задаче