test: move remaining files from old test/ directory (#6081)

This commit is contained in:
Dmitry Gozman 2021-04-05 15:51:45 -07:00 committed by GitHub
parent 8e6639b770
commit 5afe282fbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
196 changed files with 109 additions and 137 deletions

View file

@ -40,7 +40,7 @@ jobs:
# Wrap `npm run` in a subshell to redirect STDERR to file. # Wrap `npm run` in a subshell to redirect STDERR to file.
# Enable core dumps in the subshell. # Enable core dumps in the subshell.
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && npm run test -- ${{ matrix.browser }} --reporter=dot,json" - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && npm run test -- ${{ matrix.browser }} --reporter=dot,json"
- run: node test/checkCoverage.js ${{ matrix.browser }} - run: node tests/config/checkCoverage.js ${{ matrix.browser }}
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json - run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
if: always() && github.repository == 'microsoft/playwright' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-')) if: always() && github.repository == 'microsoft/playwright' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-'))
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v1

5
.gitignore vendored
View file

@ -1,6 +1,5 @@
/node_modules/ /node_modules/
/test-results/ /test-results/
/test/coverage-report
/tests/coverage-report /tests/coverage-report
.local-browsers/ .local-browsers/
/.dev_profile* /.dev_profile*
@ -9,13 +8,11 @@
*.pyc *.pyc
.vscode .vscode
yarn.lock yarn.lock
/node6
/src/generated/* /src/generated/*
lib/ lib/
jest-report.json
drivers/ drivers/
.android-sdk/ .android-sdk/
.gradle/ .gradle/
nohup.out nohup.out
api.json api.json
.trace .trace

View file

@ -58,7 +58,7 @@ export function captureStackTrace(): { stack: string, frames: StackFrame[] } {
// for tests. // for tests.
if (isUnderTest() && fileName.includes(path.join('playwright', 'src'))) if (isUnderTest() && fileName.includes(path.join('playwright', 'src')))
continue; continue;
if (isUnderTest() && fileName.includes(path.join('playwright', 'test', 'coverage.js'))) if (isUnderTest() && fileName.includes(path.join('playwright', 'tests', 'config', 'coverage.js')))
continue; continue;
frames.push({ frames.push({
file: fileName, file: fileName,

View file

@ -1,13 +0,0 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"noEmit": true,
"moduleResolution": "node",
"target": "ESNext",
"strictNullChecks": false,
"strictBindCallApply": true,
"allowSyntheticDefaultImports": true,
},
"include": ["**/*.spec.js", "**/*.ts"]
}

View file

Before

Width:  |  Height:  |  Size: 434 B

After

Width:  |  Height:  |  Size: 434 B

View file

Before

Width:  |  Height:  |  Size: 346 B

After

Width:  |  Height:  |  Size: 346 B

View file

Before

Width:  |  Height:  |  Size: 413 B

After

Width:  |  Height:  |  Size: 413 B

View file

Before

Width:  |  Height:  |  Size: 434 B

After

Width:  |  Height:  |  Size: 434 B

View file

Before

Width:  |  Height:  |  Size: 403 B

After

Width:  |  Height:  |  Size: 403 B

View file

Before

Width:  |  Height:  |  Size: 422 B

After

Width:  |  Height:  |  Size: 422 B

View file

Before

Width:  |  Height:  |  Size: 445 B

After

Width:  |  Height:  |  Size: 445 B

View file

Before

Width:  |  Height:  |  Size: 387 B

After

Width:  |  Height:  |  Size: 387 B

View file

Before

Width:  |  Height:  |  Size: 447 B

After

Width:  |  Height:  |  Size: 447 B

View file

Before

Width:  |  Height:  |  Size: 437 B

After

Width:  |  Height:  |  Size: 437 B

View file

Before

Width:  |  Height:  |  Size: 220 B

After

Width:  |  Height:  |  Size: 220 B

Some files were not shown because too many files have changed in this diff Show more