An open API service indexing awesome lists of open source software.

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.

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`.