Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Test framework detection fail #412

Open
Sinled opened this issue Oct 15, 2018 · 6 comments
Open

Test framework detection fail #412

Sinled opened this issue Oct 15, 2018 · 6 comments

Comments

@Sinled
Copy link

Sinled commented Oct 15, 2018

After updating to ember-cli: 3.5.0
and migrating from ember-cli-qunit to ember-qunit automatic framework detection fails.
with error

WARNING: [ember-cli-template-lint] Test framework detection was unsuccessful. Please provide a "testGenerator" option explicitly to enable the test generators.
The "groupName" options can only be used with a "testGenerator" option of: qunit,mocha

temporary fixed by adding corresponding option to ember-cli-build but shouldn't it work out of the box?

@rwjblue
Copy link
Member

rwjblue commented Oct 15, 2018

What version of ember-cli-template-lint?

@Sinled
Copy link
Author

Sinled commented Oct 15, 2018

@rwjblue
latest available ember-cli-template-lint: 0.7.6

@rwjblue
Copy link
Member

rwjblue commented Oct 15, 2018

Ok. This is fixed in the latest betas, but likely not in the 0.7.6 series. I’ll take a look to see if we can back port.

@Sinled
Copy link
Author

Sinled commented Oct 15, 2018

Thanks!

@jerrypopsoff
Copy link

@Sinled Can you please provide an example of your workaround?

@jerrypopsoff
Copy link

For those curious, adding the following to ember-cli-build.js should resolve the issue.

'ember-cli-template-lint': {
  testGenerator: 'qunit' // or 'mocha', etc.
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants