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

Commit a8b8b7d

Browse files
Bump Find Test Names to 1.15.0 (#120) [skip ci]
* bump version * added tests Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
1 parent 1d301b2 commit a8b8b7d

File tree

6 files changed

+36
-15075
lines changed

6 files changed

+36
-15075
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,13 @@ jobs:
425425
--config specPattern="**/explicit-spec.js" \
426426
--env grepTags="@tag1 --@tag2",grepOmitFiltered=true \
427427
--expect-exactly expects/explicit-omit-spec.json
428+
429+
- name: filter specs when using dynamic names 🧪
430+
run: |
431+
npx cypress-expect \
432+
--config testFiles="**/dynamic/*.spec.js" \
433+
--env grepTags="@smoke",grepFilterSpecs=true \
434+
--expect-exactly expects/dynamic-spec.json
428435
429436
release:
430437
needs: [tests1, tests2, tests3]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/// <reference types="cypress" />
2+
3+
const parameterized = 'parameterized'
4+
5+
describe('should run these tests', () => {
6+
it(`${parameterized} title`, { tags: '@smoke' }, () => {
7+
})
8+
9+
it('seperated' + ' title', { tags: '@smoke' }, () => {
10+
})
11+
});
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/// <reference types="cypress" />
2+
3+
const parameterized = 'parameterized'
4+
5+
describe('should filter out this spec', () => {
6+
it(`${parameterized} title`, { tags: '@sanity' }, () => {
7+
})
8+
9+
it('seperated' + ' title', { tags: '@sanity' }, () => {
10+
})
11+
});

expects/dynamic-spec.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"should run these tests": {
3+
"parameterized title": "passed",
4+
"seperated title": "passed"
5+
}
6+
}

0 commit comments

Comments
 (0)