ember-template-lint / ember-cli-template-lint

Ember CLI integration for ember-template-lint
MIT License
150 stars 53 forks source link

Test framework detection fail #412

Open Sinled opened 6 years ago

Sinled commented 6 years ago

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 commented 6 years ago

What version of ember-cli-template-lint?

Sinled commented 6 years ago

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

rwjblue commented 6 years ago

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 commented 6 years ago

Thanks!

jerrypopsoff commented 6 years ago

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

jerrypopsoff commented 6 years ago

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

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