From 2a7c2012eed6c1866ccf52e39f659b9dbfc25dc5 Mon Sep 17 00:00:00 2001 From: lukas Date: Tue, 9 Jun 2020 21:41:58 +0200 Subject: [PATCH] added tests to ci --- .gitlab-ci.yml | 1 + package.json | 16 ++++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bae1fc1..ebb2dba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,7 @@ coverage: artifacts: reports: cobertura: coverage/cobertura-coverage.xml + junit: junit.xml build: stage: build diff --git a/package.json b/package.json index e766a78..c924fcd 100644 --- a/package.json +++ b/package.json @@ -7,16 +7,17 @@ "@testing-library/react": "^9.5.0", "@testing-library/user-event": "^7.2.1", "bootstrap": "^4.5.0", - "react": "^16.13.1", - "react-dom": "^16.13.1", - "react-scripts": "^3.4.1", + "jest-junit": "^10.0.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": { "start": "react-scripts start", "build": "react-scripts build", - "test": "react-scripts test", + "test": "react-scripts test --reporters=jest-junit --reporters=default", "coverage": "react-scripts test --coverage --watchAll=false", "eject": "react-scripts eject" }, @@ -24,7 +25,10 @@ "collectCoverageFrom": [ "src/**/*.{js,jsx,ts,tsx}" ], - "coverageReporters": ["cobertura","text"] + "coverageReporters": [ + "cobertura", + "text" + ] }, "proxy": "http://192.168.0.248", "homepage": "/",