You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(exclude-files): Exclude files with a ! (#188)
* feat(exclude-files): Exclude files with a `!`
* Refactor `InputFileResolver`, included a new class `PatternResolver` in order to reuse functionality for both `mutate` and `files`.
* Ignore patterns starting with an `!` as long as they are provided as strings
* Deduplicate files, first occurance wins.
* fix(deps): Pin typescript version
* refactor(InputFileResolver): Move global functions
Move global functions to be static methods on the 2 classes.
* refactor(input-file-resolver): Static -> instance
* Move static methods to be instance methods
Copy file name to clipboardExpand all lines: README.md
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -59,25 +59,28 @@ The mutators that are supported by Stryker can be found on [our website](http://
59
59
All options can be configured either via the command line or via a config file.
60
60
61
61
Both `files` and `mutate` support globbing expressions using [node glob](https://github.com/isaacs/node-glob). This is the same globbing format you might know from
62
-
[Grunt](https://github.com/gruntjs/grunt) and [Karma](https://github.com/karma-runner/karma).
62
+
[Grunt](https://github.com/gruntjs/grunt) and [Karma](https://github.com/karma-runner/karma).
63
+
It is possible to *ignore* files by adding an exclamation mark `!` to the start of the expression.
63
64
64
65
#### Files
65
66
**Command line:**`--files node_modules/a-lib/**/*.js,src/**/*.js,a.js,test/**/*.js` or `-f node_modules/a-lib/**/*.js,src/**/*.js,a.js,test/**/*.js`
* The `pattern` property is mandatory and contains the globbing expression used for selecting the files. Using `!` to ignore files is *not* supported here.
78
79
* The `included` property is optional and determines whether or not this file should be loaded initially by the test-runner (default: true)
79
80
* The `mutated` property is optional and determines whether or not this file should be targeted for mutations (default: false)
80
81
82
+
*Note*: To include a file/folder which start with an exclamation mark (`!`), use the `InputFileDescriptor` syntax
83
+
81
84
#### Files to mutate
82
85
**Command line:**`-m src/**/*.js,a.js` or `--mutate src/**/*.js,a.js`
Copy file name to clipboardExpand all lines: src/stryker-cli.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Optional location to the stryker.conf.js file as last argument. That file should
22
22
strykerConfig=config;
23
23
})
24
24
.option('-f, --files <allFiles>',`A comma seperated list of globbing expression used for selecting all files needed to run the tests. For a more detailed way of selecting inputfiles, please use a configFile.
0 commit comments