Plugin for Testplane to filter tests specified in json
-file.
npm install @testplane/test-filter
enabled
[Boolean] (optional,false
by default) - enable/disable the plugin.inputFile
[String] (optional,testplane-filter.json
by default) - path to file with tests to run.
- Require plugin in your testplane config file:
plugins: {
'@testplane/test-filter': {
enabled: true,
inputFile: 'some/file.json'
}
}
- Input file format:
[
{
"fullTitle": "full test title",
"browserId": "browser-id"
},
{
"suiteTitle": "suite title (describe block)",
"browserId": "browser-id"
},
{
"title": "test title (it block)",
"browserId": "browser-id"
}
]
If multiple fields (fullTitle
, suiteTitle
, title
) are specified for a single entry, fullTitle
takes precedence, then suiteTitle
, then title
.