added tests to ci

This commit is contained in:
lukas 2020-06-09 21:41:58 +02:00
parent ea6a6dca9c
commit 2a7c2012ee
2 changed files with 11 additions and 6 deletions

View File

@ -22,6 +22,7 @@ coverage:
artifacts: artifacts:
reports: reports:
cobertura: coverage/cobertura-coverage.xml cobertura: coverage/cobertura-coverage.xml
junit: junit.xml
build: build:
stage: build stage: build

View File

@ -7,16 +7,17 @@
"@testing-library/react": "^9.5.0", "@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1", "@testing-library/user-event": "^7.2.1",
"bootstrap": "^4.5.0", "bootstrap": "^4.5.0",
"react": "^16.13.1", "jest-junit": "^10.0.0",
"react-dom": "^16.13.1",
"react-scripts": "^3.4.1",
"plyr-react": "^2.2.0", "plyr-react": "^2.2.0",
"react-bootstrap": "^1.0.1" "react": "^16.13.1",
"react-bootstrap": "^1.0.1",
"react-dom": "^16.13.1",
"react-scripts": "^3.4.1"
}, },
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",
"build": "react-scripts build", "build": "react-scripts build",
"test": "react-scripts test", "test": "react-scripts test --reporters=jest-junit --reporters=default",
"coverage": "react-scripts test --coverage --watchAll=false", "coverage": "react-scripts test --coverage --watchAll=false",
"eject": "react-scripts eject" "eject": "react-scripts eject"
}, },
@ -24,7 +25,10 @@
"collectCoverageFrom": [ "collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}" "src/**/*.{js,jsx,ts,tsx}"
], ],
"coverageReporters": ["cobertura","text"] "coverageReporters": [
"cobertura",
"text"
]
}, },
"proxy": "http://192.168.0.248", "proxy": "http://192.168.0.248",
"homepage": "/", "homepage": "/",