From 79ba29b95480d5395df11191fbebecf2810d2810 Mon Sep 17 00:00:00 2001 From: Alvin Huang <17609145+alvin-huang@users.noreply.github.com> Date: Mon, 10 Feb 2020 08:41:02 -0500 Subject: [PATCH] fix ember parallelization (#7221) --- .circleci/config.yml | 9 +++++++-- ui-v2/tests/test-helper.js | 4 +--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 03dda53d2..ddb106030 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -461,6 +461,9 @@ jobs: - image: *EMBER_IMAGE environment: EMBER_TEST_REPORT: test-results/report-oss.xml #outputs test report for CircleCI test summary + EMBER_TEST_PARALLEL: true #enables test parallelization with ember-exam + CONSUL_NSPACES_ENABLED: 0 + parallelism: 2 steps: - checkout - restore_cache: @@ -469,7 +472,7 @@ jobs: at: ui-v2 - run: working_directory: ui-v2 - command: make test-oss-ci + command: node_modules/ember-cli/bin/ember exam --split=$CIRCLE_NODE_TOTAL --partition=`expr $CIRCLE_NODE_INDEX + 1` --path dist --silent -r xunit - store_test_results: path: ui-v2/test-results # run ember frontend tests @@ -478,6 +481,8 @@ jobs: - image: *EMBER_IMAGE environment: EMBER_TEST_REPORT: test-results/report-ent.xml #outputs test report for CircleCI test summary + EMBER_TEST_PARALLEL: true #enables test parallelization with ember-exam + parallelism: 2 steps: - checkout - restore_cache: @@ -486,7 +491,7 @@ jobs: at: ui-v2 - run: working_directory: ui-v2 - command: make test-ci + command: node_modules/ember-cli/bin/ember exam --split=$CIRCLE_NODE_TOTAL --partition=`expr $CIRCLE_NODE_INDEX + 1` --path dist --silent -r xunit - store_test_results: path: ui-v2/test-results # run ember frontend unit tests to produce coverage report diff --git a/ui-v2/tests/test-helper.js b/ui-v2/tests/test-helper.js index c4f73d51a..d80cf99f3 100644 --- a/ui-v2/tests/test-helper.js +++ b/ui-v2/tests/test-helper.js @@ -1,11 +1,9 @@ import Application from '../app'; import config from '../config/environment'; import { setApplication } from '@ember/test-helpers'; -import { start } from 'ember-qunit'; import './helpers/flash-message'; -import loadEmberExam from 'ember-exam/test-support/load'; +import start from 'ember-exam/test-support/start'; -loadEmberExam(); const application = Application.create(config.APP); application.inject('component:copy-button', 'clipboard', 'service:clipboard/local-storage'); setApplication(application);