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.

Make stryker config file mandatory

See original GitHub issue

Running stryker with command line options won’t read a stryker.conf.js file. This results in unexpacted behavior, for example:

$ stryker run
[2017-09-22 15:30:17.180] [INFO] ConfigReader - Using stryker.conf.js in the current working directory.
...
[2017-09-22 15:30:29.083] [INFO] Stryker - Done in 11 seconds.

$ stryker run --logLevel debug
[2017-09-22 15:30:35.483] [INFO] ConfigReader - No config file specified. Running with command line arguments

I think it would be more useful to always require a stryker.conf.js file to be specified.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
nicojscommented, Oct 3, 2017

Well, it might have if @Be-ngt-oH didn’t step in and did his suggestion. So your example should still work

0reactions
j-truaxcommented, Oct 3, 2017

To make sure I understand correctly, is this request removing the ability to directly define a grunt task in Gruntfile.js that has all the config settings in it?

example…

stryker: {
	mutate: {
		options: {
        		files: [
            			{ pattern: 'src/**/*.js', mutated: true},
            			'test/**/*.spec.js'
        		],
        		testRunner: 'karma',
        		testFramework: 'jasmine',
        		coverageAnalysis: 'all',
        		reporter: ['clear-text', 'html', 'event-recorder'],
        		thresholds: {
            			high: 90,
            			low: 50,
            			break: 95
        		}
		}
	}
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Make stryker config file mandatory · Issue #390 - GitHub
Running stryker with command line options won't read a stryker.conf.js file. This results in unexpacted behavior, for example: $ stryker run ...
Read more >
Config file | Stryker Mutator
Config file. Although a config file is not mandatory, it is recommended. You can define your Stryker configuration in either a .js or...
Read more >
Correct configuration for Stryker on Angular v11 Library project?
With help from nicojs, I was able to get basic Stryker functionality working on my library project. As it turns out I was...
Read more >
Stryker - npm.io
As you can see, the config file is not a simple JSON file. It should be a node module. You might recognize this...
Read more >
stryker - npm
Of course, you can still make changes to it, before you run Stryker for the first time. The following is an example stryker.conf.js...
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