ember-exam icon indicating copy to clipboard operation
ember-exam copied to clipboard

exam:iterate & EMBER_ENV

Open calderas opened this issue 7 years ago • 2 comments

When running ember exam it sets the following ember-cli variables as expected:

EMBER_CLI_TEST_COMMAND: 'true',
EMBER_ENV: 'test'

However, when running ember exam:iterate N the environment defaults to development

EMBER_ENV: 'development'

Looks like this line is missing the test environment configuration option: https://github.com/trentmwillis/ember-exam/blob/master/lib/commands/exam/iterate.js#L77

'./node_modules/.bin/ember build --environment=test --output-path ' + this._outputDir, { stdio: 'inherit' }

instead of:

'./node_modules/.bin/ember build --output-path ' + this._outputDir, { stdio: 'inherit' }

calderas avatar Jan 17 '18 20:01 calderas

Ah good catch, would you mind submitting a PR to fix this?

trentmwillis avatar Jan 17 '18 22:01 trentmwillis

do you think this is culprit? when I run ember exam:iterate X I get cascade of Assertion Failed: You cannot use the same root element (BODY) multiple times in an Ember.Application https://github.com/trentmwillis/ember-exam/issues/126

erichaus avatar Jan 30 '18 01:01 erichaus