Skip to content

Commit 2e17b92

Browse files
Dennis BergevinDennis Bergevin
Dennis Bergevin
authored and
Dennis Bergevin
committed
adding readme context
1 parent ba4df6c commit 2e17b92

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Cypress interactive cli prompts to select and run specs, tests or tags.
1616
#### Table of Contents
1717

1818
- [Installation](#installation)
19+
- [@bahmutov/cy-grep](#@bahmutov/cy-grep)
20+
- [@cypress/grep](#@cypress/grep)
1921
- [Run mode](#run-mode)
2022
- [Keyboard controls](#keyboard-controls)
2123
- [Test titles or tags](#test-titles-or-tags)
@@ -39,14 +41,20 @@ Cypress interactive cli prompts to select and run specs, tests or tags.
3941
npm install --save-dev cypress-cli-select
4042
```
4143

42-
In order to run specific tests by their title, install the following plugin:
44+
### `@bahmutov/cy-grep`
45+
46+
In order to run specific tests by their title or tag, install the following plugin:
4347

4448
```sh
4549
npm install --save-dev @bahmutov/cy-grep
4650
```
4751

4852
Follow the installation and setup for `@bahmutov/cy-grep` in the project [README](https://github.com/bahmutov/cy-grep)
4953

54+
### `@cypress/grep`
55+
56+
If you use `@cypress/grep`, you can use this package for specs **or** tag selection, but this package uses functionality not currently supported by `@cypress/grep` to allow for other uses.
57+
5058
---
5159

5260
## Run mode

index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ async function runSelectedSpecs() {
176176
// Prompt for use to select spec and test titles or tags option
177177
const specAndTestPrompt = await select({
178178
message: "Choose to filter by specs, specific test titles or tags: ",
179-
multiple: true,
179+
multiple: disableTitleTagChoice ? false : true,
180+
defaultValue: disableTitleTagChoice ? "Specs" : null,
180181
clearInputWhenSelected: true,
181182
selectFocusedOnSubmit: process.env.SUBMIT_FOCUSED,
182183
canToggleAll: true,
@@ -194,6 +195,8 @@ async function runSelectedSpecs() {
194195
required: true,
195196
});
196197

198+
/*
199+
197200
/*
198201
* NOTE:: Choose test titles or tags
199202
* This requires the cy-grep package

0 commit comments

Comments
 (0)