Skip to content

Commit b830568

Browse files
authored
Tests: Migrate test runner to jquery-test-runner
Closes gh-560
1 parent 758a93f commit b830568

33 files changed

+354
-2915
lines changed

.github/workflows/browser-tests.yml

+5-27
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- main
88

99
env:
10-
NODE_VERSION: 20.x
10+
NODE_VERSION: 22.x
1111

1212
jobs:
1313
test:
@@ -45,14 +45,8 @@ jobs:
4545
- name: Run tests
4646
run: |
4747
npm run pretest
48-
npm run test:unit -- -b ${{ matrix.BROWSER }} -h \
49-
--jquery-migrate ${{ matrix.MIGRATE_VERSION }} \
50-
--jquery git --jquery git.min --jquery git.slim --jquery git.slim.min \
51-
--jquery 3.x-git --jquery 3.x-git.min --jquery 3.x-git.slim --jquery 3.x-git.slim.min \
52-
--jquery 3.7.1 --jquery 3.7.1.slim \
53-
--jquery 3.6.4 --jquery 3.5.1 --jquery 3.4.1 \
54-
--jquery 3.3.1 --jquery 3.2.1 --jquery 3.1.1 --jquery 3.0.0 \
55-
--retries 1
48+
npm run test:unit -- -c jtr-local.yml \
49+
--headless -b ${{ matrix.BROWSER }} -f plugin=${{ matrix.MIGRATE_VERSION }}
5650
5751
ie:
5852
runs-on: windows-latest
@@ -81,15 +75,7 @@ jobs:
8175

8276
- name: Run tests
8377
shell: cmd
84-
run: |
85-
npm run test:ie -- ^
86-
--jquery-migrate ${{ env.MIGRATE_VERSION }} ^
87-
--jquery git --jquery git.min --jquery git.slim --jquery git.slim.min ^
88-
--jquery 3.x-git --jquery 3.x-git.min --jquery 3.x-git.slim --jquery 3.x-git.slim.min ^
89-
--jquery 3.7.1 --jquery 3.7.1.slim ^
90-
--jquery 3.6.4 --jquery 3.5.1 --jquery 3.4.1 ^
91-
--jquery 3.3.1 --jquery 3.2.1 --jquery 3.1.1 --jquery 3.0.0 ^
92-
--retries 1
78+
run: npm run test:ie -- -c jtr-local.yml -f plugin=${{ env.MIGRATE_VERSION }}
9379

9480
safari:
9581
runs-on: macos-latest
@@ -117,12 +103,4 @@ jobs:
117103
run: npm install
118104

119105
- name: Run tests
120-
run: |
121-
npm run test:safari -- \
122-
--jquery-migrate ${{ env.MIGRATE_VERSION }} \
123-
--jquery git --jquery git.min --jquery git.slim --jquery git.slim.min \
124-
--jquery 3.x-git --jquery 3.x-git.min --jquery 3.x-git.slim --jquery 3.x-git.slim.min \
125-
--jquery 3.7.1 --jquery 3.7.1.slim \
126-
--jquery 3.6.4 --jquery 3.5.1 --jquery 3.4.1 \
127-
--jquery 3.3.1 --jquery 3.2.1 --jquery 3.1.1 --jquery 3.0.0 \
128-
--retries 1
106+
run: npm run test:safari -- -c jtr-local.yml -f plugin=${{ env.MIGRATE_VERSION }}

.github/workflows/browserstack-3.x.yml

+3-10
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
env:
1616
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
1717
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
18-
NODE_VERSION: 20.x
18+
NODE_VERSION: 22.x
1919
name: ${{ matrix.BROWSER }}
2020
concurrency:
2121
group: ${{ matrix.BROWSER }} - ${{ github.sha }}
@@ -79,13 +79,6 @@ jobs:
7979

8080
- name: Test
8181
run: |
82-
npm run test:unit -- \
83-
-v --browserstack "${{ matrix.BROWSER }}" \
84-
--jquery-migrate dev --jquery-migrate min \
85-
--jquery 3.x-git --jquery 3.x-git.min --jquery 3.x-git.slim --jquery 3.x-git.slim.min \
86-
--jquery 3.7.1 --jquery 3.7.1.slim --jquery 3.6.4 --jquery 3.6.4.slim \
87-
--jquery 3.5.1 --jquery 3.5.1.slim --jquery 3.4.1 --jquery 3.4.1.slim \
88-
--jquery 3.3.1 --jquery 3.3.1.slim --jquery 3.2.1 --jquery 3.2.1.slim \
89-
--jquery 3.1.1 --jquery 3.1.1.slim --jquery 3.0.0 --jquery 3.0.0.slim \
82+
npm run test:unit -- -v -c jtr-3.x.yml \
83+
--browserstack "${{ matrix.BROWSER }}" \
9084
--run-id ${{ github.run_id }} \
91-
--retries 3 --hard-retries 1

.github/workflows/browserstack-git.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
env:
1616
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
1717
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
18-
NODE_VERSION: 20.x
18+
NODE_VERSION: 22.x
1919
name: ${{ matrix.BROWSER }}
2020
concurrency:
2121
group: ${{ matrix.BROWSER }} - ${{ github.sha }}
@@ -63,9 +63,6 @@ jobs:
6363

6464
- name: Test
6565
run: |
66-
npm run test:unit -- \
67-
-v --browserstack "${{ matrix.BROWSER }}" \
68-
--jquery-migrate dev --jquery-migrate min \
69-
--jquery git --jquery git.min --jquery git.slim --jquery git.slim.min \
66+
npm run test:unit -- -v -c jtr-git.yml \
67+
--browserstack "${{ matrix.BROWSER }}" \
7068
--run-id ${{ github.run_id }} \
71-
--retries 3 --hard-retries 1

.github/workflows/filestash.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
environment: filestash
1515
env:
16-
NODE_VERSION: 20.x
16+
NODE_VERSION: 22.x
1717
name: Update Filestash
1818
steps:
1919
- name: Checkout

.github/workflows/node.js.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches-ignore: "dependabot/**"
77

88
env:
9-
NODE_VERSION: 20.x
9+
NODE_VERSION: 22.x
1010

1111
jobs:
1212
node-smoke-test:

jtr-3.x.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: 1
2+
3+
runs:
4+
jquery:
5+
- 3.x-git
6+
- 3.x-git.min
7+
- 3.x-git.slim
8+
- 3.x-git.slim.min
9+
- 3.7.1
10+
- 3.7.1.slim
11+
- 3.6.4
12+
- 3.6.4.slim
13+
- 3.5.1
14+
- 3.5.1.slim
15+
- 3.4.1
16+
- 3.4.1.slim
17+
- 3.3.1
18+
- 3.3.1.slim
19+
- 3.2.1
20+
- 3.2.1.slim
21+
- 3.1.1
22+
- 3.1.1.slim
23+
- 3.0.0
24+
- 3.0.0.slim
25+
plugin:
26+
- dev
27+
- min
28+
29+
retries: 2
30+
hard-retries: 1

jtr-git.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 1
2+
3+
runs:
4+
jquery:
5+
- git
6+
- git.min
7+
- git.slim
8+
- git.slim.min
9+
plugin:
10+
- dev
11+
- min
12+
13+
retries: 2
14+
hard-retries: 1

jtr-local.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: 1
2+
3+
flags:
4+
jquery:
5+
- git
6+
- git.min
7+
- git.slim
8+
- git.slim.min
9+
- 3.x-git
10+
- 3.x-git.min
11+
- 3.x-git.slim
12+
- 3.x-git.slim.min
13+
- 3.7.1
14+
- 3.7.1.slim
15+
- 3.6.4
16+
- 3.5.1
17+
- 3.4.1
18+
- 3.3.1
19+
- 3.2.1
20+
- 3.1.1
21+
- 3.0.0
22+
23+
retries: 1

0 commit comments

Comments
 (0)