From 1d1a6829db131440f0223946424ce63f48974cc9 Mon Sep 17 00:00:00 2001 From: Sergio Hg Date: Sat, 5 Oct 2019 16:29:50 +0200 Subject: [PATCH] ci(circleci): store test results in junit format (#1497) --- .circleci/config.yml | 2 ++ .gitignore | 2 +- jest.config.js | 1 + package.json | 1 + yarn.lock | Bin 366671 -> 367245 bytes 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e7c591d84..01710e2f9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -46,6 +46,8 @@ commands: - run: name: Functional test command: yarn test:functional + - store_test_results: + path: reports/ jobs: prepare: diff --git a/.gitignore b/.gitignore index ca19b8f3b..6cd3c1973 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ yarn-error.log # Istanbul +reports/ coverage/ .nyc* @@ -36,4 +37,3 @@ __tests__ # Compiled script static/* - diff --git a/jest.config.js b/jest.config.js index 2cf189af0..de75148a8 100644 --- a/jest.config.js +++ b/jest.config.js @@ -4,6 +4,7 @@ module.exports = { name: 'verdaccio-unit-jest', verbose: true, collectCoverage: true, + reporters: ["default", ["jest-junit", { outputDirectory: 'reports' }]], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], testURL: 'http://localhost', testRegex: '(test/unit.*\\.spec)\\.ts', diff --git a/package.json b/package.json index 745399355..4c1de55b8 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,7 @@ "in-publish": "2.0.0", "jest": "24.9.0", "jest-environment-node": "24.9.0", + "jest-junit": "8.0.0", "lint-staged": "8.2.1", "nock": "11.3.3", "prettier": "1.18.2", diff --git a/yarn.lock b/yarn.lock index af1bcd2de73e0ea1c86ba94945031c945b511b8b..14837091af073479cb3ebb33f4d13183641ac34f 100644 GIT binary patch delta 397 zcmW-cK}!Nb7>3Ewi&Atb!64X*I;HN8D}^K-f}L?^O{-m8*LEeSLr@n_ z9p=!pnW(PGGC)7h@!4AS9~4hxxqIa+HYh8dHw0ad8y5tQ3h775KM zvWlq6Fs4LB66Pzvkz|v)McArC-*W5SzUFCe7FVEMV~(cOSm6K_bEnRp*H&5Cuc}Sa zZP-`+?7ntfkx`FS{WFAHc~3efBcfWvX0K2hc1k5a(ZDi)(ZL)DES~58mN@>LndN6z zB$4p0E``-|De#k~cSqnh6$_Y6;qk`=!9}M(W^8_)PoARX?EnoVgG`5bXonS|V<