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.

Can't run stryker

See original GitHub issue

Hi, I’ve been trying to run following the quickstart guide (vanilla NPM - mocha - mocha - clear-text), but I got this error:

[shinglyu@shinglyu-XPS-15-9550:~/workspace/mutation-testing-demo/stryker]
% npm run stryker                                                

> @ stryker /home/shinglyu/workspace/mutation-testing-demo/stryker
> stryker -c strker.conf.js

/usr/bin/env: ‘node\r’: No such file or directory

npm ERR! Linux 4.4.0-36-generic
npm ERR! argv "/home/shinglyu/.nvm/versions/node/v6.3.0/bin/node" "/home/shinglyu/.nvm/versions/node/v6.3.0/bin/npm" "run" "stryker"
npm ERR! node v6.3.0
npm ERR! npm  v3.10.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! @ stryker: `stryker -c strker.conf.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the @ stryker script 'stryker -c strker.conf.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the  package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     stryker -c strker.conf.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs 
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls 
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/shinglyu/workspace/mutation-testing-demo/stryker/npm-debug.log

My mocha is OK:

[shinglyu@shinglyu-XPS-15-9550:~/workspace/mutation-testing-demo/stryker]
% ./node_modules/mocha/bin/mocha                                         127 ↵


  Calculator
    ✓ substractPositive
    ✓ add


  2 passing (6ms)

And I’m using nvm:

[shinglyu@shinglyu-XPS-15-9550:~/workspace/mutation-testing-demo/stryker]
% npm -v
3.10.3
[shinglyu@shinglyu-XPS-15-9550:~/workspace/mutation-testing-demo/stryker]
% node -v
v6.3.0
[shinglyu@shinglyu-XPS-15-9550:~/workspace/mutation-testing-demo/stryker]
% /usr/bin/env node -v
v6.3.0

This was how I installed stryker:

npm i --save-dev mocha@^2.3.3
npm i --save-dev mocha stryker stryker-api stryker-mocha-runner

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
shinglyucommented, Sep 10, 2016

I’m about to board a long distance flight, I’ll reply later

Nico Jansen notifications@github.com 於 2016年9月10日 週六 22:28 寫道:

Hi @shinglyu https://github.com/shinglyu thanks for reporting this issue.

Could you confirm that the name of the stryker config file is correct? strker.conf.js seems like the wrong name, did you indeed name the config file like that?

If that is the problem, stryker should do a better job of error reporting.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/stryker-mutator/stryker/issues/149#issuecomment-246114656, or mute the thread https://github.com/notifications/unsubscribe-auth/ADGbJ5r5a7ZjgRXAu2PcHVTZ1N7SqyI3ks5qor6jgaJpZM4J5udr .

0reactions
nicojscommented, Oct 6, 2016

Error message is sufficiently clear after all:

[2016-10-06 17:54:09.276] [FATAL] ConfigReader - File stryker.consf.js does not exist!

closing this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Stryker Mutator
Below you'll find an ever-growing list of issues that you might occur when running StrykerJS on your project for the first time.
Read more >
Can't run stryker · Issue #149 - GitHub
Hi, I've been trying to run following the quickstart guide (vanilla NPM - mocha - mocha - clear-text), ... Can't run stryker #149....
Read more >
Stryker does not detect any of the tests in angular application
im trying to do mutation testing for my application, however when i run my stryker mutator it does not take any of the...
Read more >
stryker-mutator/stryker - Gitter
Hi! I have some lazy import in my Angular 11 application that makes Stryker run into MODULE_NOT_FOUND . When running regular ng test...
Read more >
Introduction to Mutation Testing with Stryker - Medium
It does not check that our tests are actually able to detect faults in the ... stryker run'— This will generate mutants for...
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