This commit is contained in:
dbroqua 2020-02-11 21:16:25 +01:00
parent 4ea05a1de2
commit c2571cb40d
3 changed files with 6 additions and 5 deletions

View file

@ -21,8 +21,8 @@ testing:
script: script:
- yarn install - yarn install
- ./node_modules/.bin/sequelize db:migrate - ./node_modules/.bin/sequelize db:migrate
- yarn test --ci --collectCoverage=true - yarn test --ci --collectCoverage=true --coverage
coverage: /All files\s*\|\s*([\d\.]+)/ coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
artifacts: artifacts:
paths: paths:
- junit.xml - junit.xml

View file

@ -11,7 +11,7 @@ services:
./node_modules/.bin/sequelize db:migrate:undo:all && ./node_modules/.bin/sequelize db:migrate:undo:all &&
./node_modules/.bin/sequelize db:migrate && ./node_modules/.bin/sequelize db:migrate &&
./node_modules/.bin/sequelize db:seed:all && ./node_modules/.bin/sequelize db:seed:all &&
yarn test --ci --collectCoverage=true" yarn test --ci --coverage"
volumes: volumes:
- ./:/home/node/app - ./:/home/node/app
- /home/node/node_modules - /home/node/node_modules

View file

@ -47,10 +47,11 @@
"setupFilesAfterEnv": [ "setupFilesAfterEnv": [
"<rootDir>/test/utils/setup.js" "<rootDir>/test/utils/setup.js"
], ],
"collectCoverage": true,
"coverageReporters": [ "coverageReporters": [
"text",
"html", "html",
"cobertura", "cobertura"
"jest-junit"
], ],
"reporters": [ "reporters": [
"default", "default",