Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Error: The "group" options can only be used with a "testGenerator" option of: qunit,mocha #213

Open
Turbo87 opened this issue Oct 8, 2017 · 4 comments

Comments

@Turbo87
Copy link
Member

Turbo87 commented Oct 8, 2017

If a the testGenerator option is not set we should not set the group option to true.

@rwjblue
Copy link
Member

rwjblue commented Oct 8, 2017

Ya, good catch. I ran into this when refactoring ember-test-helpers and ember-qunit. Since those two don’t depend on ember-cli-qunit ember-cli-eslint threw errors until I manually specified the test type.

esbanarango added a commit to esbanarango/ember-cli-eslint that referenced this issue Oct 22, 2017
@runspired
Copy link

Turns out you hit this if you don't want to use the test harness (don't ask)

@gabrielgrant
Copy link

gabrielgrant commented Aug 1, 2019

I seem to be hitting this error when trying to dockerize my build, despite my local build working fine. Symptom is the same, but I'm not sure i follow whether the cause is too? Using the following dockerfile:

From node:10.16.0

Add package.json .
Add package-lock.json .

RUN npm install

ADD . .

RUN node_modules/ember-cli/bin/ember build --environment development

output is:

$ docker build .
Sending build context to Docker daemon  4.787MB
Step 1/6 : FROM node:10.16.0
 ---> 4ae749096a47
Step 2/6 : ADD package.json .
 ---> 3eb50cb999da
Removing intermediate container f79e44bf3e99
Step 3/6 : ADD package-lock.json .
 ---> 68c9424b544a
Removing intermediate container 45f39bfd10fa
Step 4/6 : RUN npm install
 ---> Running in b6ffada687c3
[...]
added 1768 packages from 863 contributors and audited 130515 packages in 44.756s
found 7515 vulnerabilities (1 low, 7514 high)
  run `npm audit fix` to fix them, or `npm audit` for details
 ---> 448223fefcb4
Removing intermediate container b6ffada687c3
Step 5/6 : ADD . .
 ---> 80f325de3b44
Removing intermediate container 34a60d5b8137
Step 6/6 : RUN node_modules/ember-cli/bin/ember build --environment development
 ---> Running in 4664887bf5fe
Could not start watchman
Visit https://ember-cli.com/user-guide/#watchman for more info.
- Building
WARNING: [ember-cli-template-lint] Test framework detection was unsuccessful. Please provide a "testGenerator" option explicitly to enable the test generators.
- Building
The "group" options can only be used with a "testGenerator" option of: qunit,mocha


Stack Trace and Error Report: /tmp/error.dump.e8b2f8f4f64c5481911c58c8e69b863d.log
The command '/bin/sh -c node_modules/ember-cli/bin/ember build --environment development' returned a non-zero code: 1

@drewchandler
Copy link

If anyone else encounters @gabrielgrant's issue, add WORKDIR /app near the top of the Dockerfile.

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

Successfully merging a pull request may close this issue.

5 participants