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.

Specify what files to mutate

See original GitHub issue

Introduction

Currenty it is possible to exclude files. This makes filtering possible so we can specify a few files not to mutate if these for example contain logic that aren’t needed to be tested (like a startup.cs).

Issue

We wish to expand this feature by specifying what files should be mutated. All other files should be excluded. This can be useful on large projects. When a developer made changes in only a few files he could want to do a quick run instead of a full run on all files.

Requirements

  • A option --files-to-mutate / -ftm should be added which expects a json array of strings.
  • All files not specified should be excluded
  • When a folder is specified, all files found in this folder should be mutated
  • When a file/folder is specified that is not found a warning should be logged
  • When this feature is enabled, file exclusion may not be enabled. Also the other way around.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
roytocommented, Feb 6, 2019

This is the way it is implemented in JS stryker mutator

0reactions
rouke-broersmacommented, Sep 6, 2019

Implemented by #662 and released since version 0.13.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration | Stryker Mutator
With mutate you configure the subset of files to use for mutation testing. Generally speaking, these should be your own source files.
Read more >
Command Line Controls — Mutatest 3.1.0 documentation
Command Line Controls¶. Specifying source files and test commands¶. If you have a Python package in a directory with an associated tests/ folder...
Read more >
stryker-mutator/core
With mutate you configure the subset of files to use for mutation testing. Generally speaking, these should be your own source files. This...
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 >
Mutate filter plugin | Logstash Reference [8.9]
The mutate filter allows you to perform general mutations on fields. ... Mutations in a config file are executed in this order:.
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