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.

Stryker doesn't ignore methods if they are not called on an object

See original GitHub issue

Describe the bug Practically, that means that Dispose cannot be ignored, and this is how I discovered the problem. But then I started to play around with this and it looks like whatever method a class has, it won’t be ignored if needed.

That is, in case I have DoSomething among ignored methods: someObject.DoSomething() will be ignored DoSomething() won’t be ignored

Expected behavior These methods are ignored, just like others are.

Desktop (please complete the following information):

  • OS: Windows
  • Stryker Version: beta 0.22.4

Additional context This probably used to work as Dispose is mentioned in this issue which is resolved. Although it’s there among many other things, I don’t know if Dispose in particular was verified.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
rouke-broersmacommented, Jun 22, 2021

@psfinaki The failing builds are due to our CI infra being flaky unfortunately. Nothing serious to worry about.

1reaction
rouke-broersmacommented, Jun 1, 2021

Not yet. When it’s released we will remove the fixed in master label.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ignore Methods option not working · Issue #695 · stryker- ...
Describe the bug using both -im and --ignore-methods either from the command line or the config file does not work. The command line...
Read more >
Configuration
Configure a build command to run after mutating the code, but before mutants are tested. This is generally used to transpile your code...
Read more >
Ignore mutations
Specific method calls can be ignored using the ignore methods option. ... Note that this only ignores mutation inside the method calls, not...
Read more >
Ignore log entries in Stryker mutation test
Create a file named stryker-config.json in the root of your tests project. ... This configuration will ignore the methods of the interface.
Read more >
stryker-mutator/core/README.md
With `mutator` you configure which mutator plugin you want to use, and optionally, which mutation types to exclude from the test run. 248,...
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