From 11fd89cd5b10791e892df690b70a5696a524e723 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Tue, 4 May 2021 15:43:09 +0200 Subject: [PATCH] jenkins enable unit tests --- Jenkinsfile | 12 ++++++------ goofy-client/package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c3e99d842e..e2740eb973 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -38,16 +38,16 @@ pipeline { sh 'npm run ci-build' } - // sh 'npm run ci-test' + sh 'npm run ci-test' } } } } - // post { - // always{ - // junit testResults: 'goofy-client/test-report.xml', skipPublishingChecks: true - // } - // } + post { + always{ + junit testResults: 'goofy-client/junit.xml', skipPublishingChecks: true + } + } } stage('Server') { diff --git a/goofy-client/package.json b/goofy-client/package.json index 5db54ee209..63e594c6f5 100644 --- a/goofy-client/package.json +++ b/goofy-client/package.json @@ -15,7 +15,7 @@ "test:debug:lib": "run-s \"ng -- test {1} --detectOpenHandles --watchAll\" --", "ci-build": "ng build --outputHashing=all", "ci-prodBuild": "ng build --prod --outputHashing=all --prod", - "ci-test": "jest test a --ci --coverage --testResultsProcessor='jest-sonar-reporter'", + "ci-test": "jest test a --ci --testResultsProcessor='jest-junit'", "ci-sonar": "sonar-scanner", "lint": "nx workspace-lint && ng lint", "affected:apps": "nx affected:apps", -- GitLab