Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help to run yarn test on Windows 7 #5

Open
hungtruongquoc opened this issue Oct 17, 2017 · 3 comments
Open

Need help to run yarn test on Windows 7 #5

hungtruongquoc opened this issue Oct 17, 2017 · 3 comments

Comments

@hungtruongquoc
Copy link

When I tried 'yarn test' first time, I got error:

$ NODE_ENV=test istanbul --include-all-sources cover _mocha -- -u bdd $(find test -name '*.js') && istanbul check-coverage && echo All tests passed �
'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.

I then copied the 'test' script and create a test:win script:

"test:win": "SET NODE_ENV=test istanbul --include-all-sources cover _mocha -- -u bdd $(find test -name '*.js') && istanbul check-coverage && echo All tests passed 👍",

I ran 'yarn test:win', I got the istanbul's error:

yarn test:win
yarn run v1.2.1
$ SET NODE_ENV=test istanbul --include-all-sources cover _mocha -- -u bdd $(find test -name '*.js') && istanbul check-coverage && echo All tests passed �
ERROR: No coverage files found.
Try "istanbul help" for usage

Do I need to manually create a coverage file or am I missing any dependencies?

Thanks

@kunalkapadia
Copy link
Contributor

Hi @hungtruongquoc,

Can you let me know the output for
SET NODE_ENV=test ./node_modules/.bin/mocha --ui bdd --reporter spec --colors test --recursive ?

@VivaLaPanda
Copy link

I have the same bug. Running the command you posted doesn't error but doesn't produce any output.

@demesew
Copy link

demesew commented Mar 20, 2018

Having the same issue. Any update on this issue?

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

No branches or pull requests

4 participants