ember-cli-template-lint icon indicating copy to clipboard operation
ember-cli-template-lint copied to clipboard

Test framework detection fail

Open Sinled opened this issue 6 years ago • 6 comments

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?

Sinled avatar Oct 15 '18 10:10 Sinled

What version of ember-cli-template-lint?

rwjblue avatar Oct 15 '18 10:10 rwjblue

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

Sinled avatar Oct 15 '18 10:10 Sinled

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.

rwjblue avatar Oct 15 '18 10:10 rwjblue

Thanks!

Sinled avatar Oct 15 '18 10:10 Sinled

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

ghaagsma avatar Oct 31 '18 18:10 ghaagsma

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

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

ghaagsma avatar Oct 31 '18 19:10 ghaagsma