Skip to content

Commit b52d149

Browse files
authored
add testcafe integration (via #1454)
1 parent 01d620d commit b52d149

291 files changed

Lines changed: 12135 additions & 80 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
"theme:playwright":
3636
- "packages/allure-playwright/**"
3737

38+
"theme:testcafe":
39+
- "packages/testcafe-reporter-allure-official/**"
40+
3841
"theme:vitest":
3942
- "packages/allure-vitest/**"
4043

.github/workflows/build.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ jobs:
9292
env:
9393
ALLURE_MATRIX_ENV: ${{ matrix.os }}-node-${{ matrix.node-version }}
9494
ALLURE_DUMP_NAME: allure-results-${{ matrix.os }}-node${{ matrix.node-version }}-${{ matrix.suite.id }}
95+
TESTCAFE_BROWSER: ${{ matrix.os == 'ubuntu-latest' && 'chromium:headless --guest --no-sandbox' || 'chromium:headless --guest' }}
96+
PLAYWRIGHT_BROWSERS_PATH: ${{ runner.temp }}/pw-browsers
9597
strategy:
9698
fail-fast: false
9799
matrix:
@@ -102,25 +104,25 @@ jobs:
102104
os: windows-latest
103105
suite:
104106
- id: cypress-1
105-
playwright_workspace: ""
107+
requirePwChromium: false
106108
- id: cypress-2
107-
playwright_workspace: ""
109+
requirePwChromium: false
108110
- id: cypress-3
109-
playwright_workspace: ""
111+
requirePwChromium: false
110112
- id: cypress-4
111-
playwright_workspace: ""
113+
requirePwChromium: false
112114
- id: playwright-1
113-
playwright_workspace: allure-playwright
115+
requirePwChromium: true
114116
- id: playwright-2
115-
playwright_workspace: allure-playwright
117+
requirePwChromium: true
116118
- id: vitest
117-
playwright_workspace: allure-vitest
119+
requirePwChromium: true
118120
- id: mocha-a
119-
playwright_workspace: ""
121+
requirePwChromium: false
120122
- id: mocha-b
121-
playwright_workspace: ""
123+
requirePwChromium: false
122124
- id: midweight
123-
playwright_workspace: ""
125+
requirePwChromium: true
124126
steps:
125127
- uses: actions/checkout@v6
126128

@@ -144,12 +146,15 @@ jobs:
144146
run: |
145147
node ./scripts/ci/run-suite.mjs compile ${{ matrix.suite.id }}
146148
147-
- name: Install Playwright chromium
148-
if: ${{ matrix.suite.playwright_workspace != '' }}
149+
- name: Install Playwright Chromium
150+
id: pw-chromium
151+
if: ${{ matrix.suite.requirePwChromium }}
149152
run: |
150-
yarn workspace ${{ matrix.suite.playwright_workspace }} playwright install chromium --with-deps
153+
node ./scripts/ci/install-playwright-chromium.mjs ${{ matrix.os == 'ubuntu-latest' && '--with-deps' || '' }}
151154
152155
- name: Run suite tests
156+
env:
157+
PW_CHROMIUM_PATH: ${{ steps.pw-chromium.outputs.path }}
153158
run: |
154159
yarn allure run --config ./allurerc.mjs --environment="${{ env.ALLURE_MATRIX_ENV }}" --dump="${{ env.ALLURE_DUMP_NAME }}" --rerun 2 -- node ./scripts/ci/run-suite.mjs test ${{ matrix.suite.id }}
155160

.pnp.cjs

Lines changed: 4021 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
69.8 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
258 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)