https://github.com/gemini-testing/testplane-test-filter
Testplane plugin to filter tests specified in JSON-file.
https://github.com/gemini-testing/testplane-test-filter
testplane-plugin
Last synced: 7 days ago
JSON representation
Testplane plugin to filter tests specified in JSON-file.
- Host: GitHub
- URL: https://github.com/gemini-testing/testplane-test-filter
- Owner: gemini-testing
- License: mit
- Created: 2018-07-31T14:50:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T14:16:32.000Z (over 1 year ago)
- Last Synced: 2025-03-25T07:51:11.741Z (4 months ago)
- Topics: testplane-plugin
- Language: JavaScript
- Homepage:
- Size: 139 KB
- Stars: 2
- Watchers: 7
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @testplane/test-filter
Plugin for [Testplane](https://github.com/gemini-testing/testplane) to filter tests specified in `json`-file.
## Install
```bash
npm install @testplane/test-filter
```## Configuration
* `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.## Usage
* Require plugin in your testplane config file:
```js
plugins: {
'@testplane/test-filter': {
enabled: true,
inputFile: 'some/file.json'
}
}
```
* Input file format:
```json
[
{
"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`.