hapi-starter-kit icon indicating copy to clipboard operation
hapi-starter-kit copied to clipboard

Need help to run yarn test on Windows 7

Open hungtruongquoc opened this issue 8 years ago • 3 comments

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

hungtruongquoc avatar Oct 17 '17 18:10 hungtruongquoc

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 ?

kunalkapadia avatar Oct 23 '17 09:10 kunalkapadia

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

VivaLaPanda avatar Nov 06 '17 02:11 VivaLaPanda

Having the same issue. Any update on this issue?

demesew avatar Mar 20 '18 15:03 demesew