Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit 7a3bd03

Browse files
committed
fix: print the burn number in the terminal
1 parent 5fc1220 commit 7a3bd03

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

src/plugin.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
function cypressGrepPlugin(config) {
22
if (config && config.env) {
3-
if (config.env.grep) {
4-
console.log(
5-
'cypress-grep: tests with "%s" in their names',
6-
config.env.grep,
7-
)
3+
const grep = config.env.grep
4+
if (grep) {
5+
console.log('cypress-grep: tests with "%s" in their names', grep)
86
}
9-
if (config.env.grepTags) {
10-
console.log('cypress-grep: filtering using tag "%s"', config.env.grepTags)
7+
8+
const grepTags = config.env.grepTags || config.env['grep-tags']
9+
if (grepTags) {
10+
console.log('cypress-grep: filtering using tag "%s"', grepTags)
11+
}
12+
13+
const grepBurn =
14+
config.env.grepBurn || config.env['grep-burn'] || config.env.burn
15+
if (grepBurn) {
16+
console.log('cypress-grep: running filtered tests %d times', grepBurn)
1117
}
1218
}
1319
}

0 commit comments

Comments
 (0)