Questions tagged [stryker]

Stryker is a mutation testing framework for JavaScript, .NET and Scala.

Stryker is a mutation testing framework for JavaScript, .NET and Scala.

26 questions
5
votes
2 answers

Trouble with Stryker and Jest

I'm testing Stryker with Jest. Stryker seems to don't apply Jest test. The two mutants don't pass test if I introduce them manually in code, but they pass when I use Stryker. Test doesn't seem to run on mutants. How can I make it work? Here is my…
Pepito
  • 375
  • 1
  • 3
  • 8
3
votes
2 answers

Stryker.NET support for SLN files from the root of the project

Getting different mutation scores each time I run Stryker from the root of the project which has multiple test projects. Does stryker support running '.sln' files from the root of the project? Command used from the root of the project: dotnet…
Itachi
  • 41
  • 3
3
votes
2 answers

How Stryker (mutation testing framework) generate mutants?

I am looking into mutation testing and trying to integrate Stryker into my code base. My application is written in React, Nodejs and currently using Jest for client-side testing and Mocha for server-side testing. I am having a few questions…
Hannah
  • 31
  • 2
2
votes
0 answers

npm run stryker fails Error: Cannot find module 'mutation-testing-report-schema/dist/src/api'

Stryker started failing because of unloaded module 'mutation-testing-report-schema/dist/src/api'. I tried deleting node_modules and npm clean install. Here is my dependency list: "@stryker-mutator/core": "^1.2.0", "@stryker-mutator/html-reporter":…
2
votes
2 answers

Ignore log entries in Stryker mutation test

I'm adding Stryker.net to my C# project. I see that it mutates on all log entries. Is there any way I can ignore these in the config?
runnerpaul
  • 5,942
  • 8
  • 49
  • 118
2
votes
1 answer

Configure multiple project files in Stryker.Net test

I have a Stryker test with this stryker-config.json: { "stryker-config": { "reporters": [ "progress", "html", "json" ], "log-level": "info", "log-file": true, "timeout-ms": 10000, "project-file":…
runnerpaul
  • 5,942
  • 8
  • 49
  • 118
1
vote
0 answers

Jest configuration are not supported by Create React App

I was setting up Stryker on my react app, but the error message appeared when I tried to run it -- These options in your package.json Jest configuration are not currently supported by Create React App: .testResultsProcessor .setupFiles It suggested…
VariableTao
  • 171
  • 8
1
vote
1 answer

How to incorporate Stryker.NET tool in Azure DevOps pipelines in case of multiple project dependencies in a test project?

I have a unit test project file which depends on two other projects. ABC.Service.UnitTest is the test project and its dependencies are XYZ.Service.csproj and LMN.Aggregator.csproj. In this case, what exactly do we need to have in our config file and…
1
vote
1 answer

Correct configuration for Stryker on Angular v11 Library project?

The instructions for setting up an Angular application project are straightforward. I have had no issue with setting up and running Stryker on an application project using default settings for Karma. I am having trouble getting it to work correctly…
Jeffrey P
  • 357
  • 1
  • 4
  • 17
1
vote
1 answer

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 tests into the analysis and performs a dry run. WARN InputFileResolver Glob pattern "src/**/*.ts" did not result in any…
Alex Vulchev
  • 201
  • 1
  • 2
  • 15
1
vote
1 answer

GitHub workflow job timeout-minutes is ignored. Why?

According to https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes The timeout-minutes parameter defaults to 360 minutes (6 hours). I parallelized my mutation testing so that my workflow takes…
lbragile
  • 7,549
  • 3
  • 27
  • 64
1
vote
0 answers

meaningless mutations while running mutation testing with Stryker

I am new to mutation testing. I use the Stryker library to generate and to run tests. But some mutations break the whole logic between code expressions. For example, // real code if (!(typeof age == 'number' && Math.trunc(age) == age)) throw new…
1
vote
1 answer

Is it possible to mention the output html location for dotnet-stryker?

I am trying to run mutations over my .NET project using stryker and indeed able to do it successfully using the command :- dotnet stryker -s Assessment.sln -p I want to specify the target location where the html…
Simar Singh
  • 415
  • 1
  • 7
  • 14
1
vote
1 answer

Jenkins build fail for reason stryker score

The goal is to fail the build of the pipeline when the stryker scores lower than X. How it can be configured in the Jenkins file or some other approach? The stryker conf: config.set({ mutator: "javascript", mutate: [...], testRunner:…
pavloN
  • 73
  • 1
  • 3
  • 8
1
vote
0 answers

Having issue with stryker-mutator

I'm new to Stryker and am experiencing an issue when using it in my application. I have the following package.json: "scripts": { "test-stryker": "mocha -r ./tests/setup-mocha.js tests/myFile.test.js", } And my stryker.config.js…
Saro
  • 810
  • 2
  • 12
  • 22
1
2