Stryker doesn't ignore methods if they are not called on an object
See original GitHub issueDescribe 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:
- Created 2 years ago
- Comments:13 (13 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@psfinaki The failing builds are due to our CI infra being flaky unfortunately. Nothing serious to worry about.
Not yet. When it’s released we will remove the fixed in master label.