From c59039817da7b8a6891bd76eff6d3d19bb6b39b6 Mon Sep 17 00:00:00 2001 From: Prateek Srivastava Date: Mon, 18 Jun 2018 14:57:49 -0700 Subject: [PATCH] Report Pretty Test Results in CI * store junit results in junit-reports * upload `junit-reports` --- .circleci/config.yml | 2 ++ .gitignore | 1 + karma.conf.ci.js | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 14bd6ef5..a56f41d9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,6 +14,8 @@ jobs: paths: - node_modules - run: make test + - store_test_results: + path: junit-reports publish: docker: - image: circleci/node:4-browsers diff --git a/.gitignore b/.gitignore index 48114008..99bfde87 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ coverage node_modules package-lock.json +junit-reports diff --git a/karma.conf.ci.js b/karma.conf.ci.js index 8b5c425d..d2a2b62e 100644 --- a/karma.conf.ci.js +++ b/karma.conf.ci.js @@ -85,7 +85,7 @@ module.exports = function(config) { customLaunchers: customLaunchers, junitReporter: { - outputDir: process.env.TEST_REPORTS_DIR, + outputDir: 'junit-reports', suite: require('./package.json').name },