add coverage and test reports

parent 2cc2ab19
Pipeline #33839 passed with stages
in 5 minutes and 42 seconds
......@@ -36,6 +36,9 @@ test_js:
<<: *node_modules
stage: test
script: yarn test:js
artifacts:
reports:
junit: junit.xml
lint_js:
<<: *node_modules
......@@ -60,5 +63,6 @@ test_py:
paths:
- cov.html/
reports:
- cobertura: cov.xml
cobertura: cov.xml
junit: tests.xml
expire_in: 1 week
......@@ -4,5 +4,6 @@ module.exports = {
},
'testPathIgnorePatterns': ['/node_modules/', '/.yarn-cache/'],
'modulePathIgnorePatterns': ['.yarn-cache'],
'setupTestFrameworkScriptFile': '<rootDir>testSetup.js'
'setupTestFrameworkScriptFile': '<rootDir>testSetup.js',
'reporters': [ 'default', 'jest-junit' ]
}
......@@ -21,7 +21,7 @@
"migrate:dev": "ZESJE_SETTINGS=$(pwd)/zesje_dev_cfg.py FLASK_APP=zesje.wsgi:app flask db upgrade",
"migrate": "FLASK_APP=zesje.wsgi:app flask db upgrade",
"prepare-migration": "ZESJE_SETTINGS=$(pwd)/zesje_dev_cfg.py FLASK_APP=zesje.wsgi:app flask db migrate",
"test:py:cov": "python3 -m pytest -v -W error::RuntimeWarning --cov=zesje --cov-report=xml:cov.xml --cov-report=html:cov.html --cov-report=term tests/",
"test:py:cov": "python3 -m pytest -v -W error::RuntimeWarning --junitxml=tests.xml --cov=zesje --cov-report=xml:cov.xml --cov-report=html:cov.html --cov-report=term tests/",
"migrate-down": "FLASK_APP=zesje.wsgi:app flask db downgrade"
},
"standard": {
......@@ -87,6 +87,7 @@
"enzyme-adapter-react-16": "^1.7.1",
"identity-obj-proxy": "^3.0.0",
"jest": "^23.3.0",
"jest-junit": "^10.0.0",
"react-test-renderer": "^16.3.2",
"snazzy": "^7.1.1",
"standard": "^11.0.1",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment