question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test fails on Windows

See original GitHub issue

Every time i try to test the Demo contract i get the following error

Start running scrypt test in c:\Users\Juan Finol\Desktop\boilerplate-master\tests\js\demo.scrypttest.js:

 scrypt_boilerplate@0.2.0 single-test c:\Users\Juan Finol\Desktop\boilerplate-master
 mocha -r ts-node/register --reporter spec --timeout 120000 "c:\Users\Juan Finol\Desktop\boilerplate-master\tests\js\demo.scrypttest.js"

'mocha' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt_boilerplate@0.2.0 single-test: `mocha -r ts-node/register --reporter spec --timeout 120000 "c:\Users\Juan Finol\Desktop\boilerplate-master\tests\js\demo.scrypttest.js"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the scrypt_boilerplate@0.2.0 single-test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Juan Finol\AppData\Roaming\npm-cache\_logs\2020-08-22T01_55_29_109Z-debug.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
freedomherocommented, Aug 26, 2020

I think it was caused by the space in your file path. It seems like a known issue of the npx, which the compile function depends on. We’ll try to resolve this, but for now you could put the project under some path without any space and give it a try.

0reactions
xhliucommented, Aug 27, 2020

Not fixed yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Windows HLK Test Failures | Microsoft Learn
A known HLK client issue can cause a test to fail when there are no failing tasks, but one or more of the...
Read more >
Easy to Fix “Failed to play test tone” Error
Easy to Fix “Failed to play test tone” Error · Solution 1: Restart Windows Audio Service · Solution 2: Change the Audio Service...
Read more >
Tests fail on windows only · Issue #1350 · r-lib/testthat - GitHub
Working on a new release for https://github.com/rstudio/dygraphs I was trying to perform checks for CRAN with results ...
Read more >
Fix Failed to play test tone error on Windows 10 - YouTube
If you see Failed to play test tone error while testing your speaker or headphone, here are some solutions to fix the problem....
Read more >
Test works on local Windows machine but fails on Linux server
IMHO your code ( catch(Exception e) { assert(false); } is bad test design. If you don't catch exceptions (and instead declare your test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found