-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support test retries #3968
Merged
Merged
Changes from 94 commits
Commits
Show all changes
395 commits
Select commit
Hold shift + click to select a range
6344281
add retries e2e test
kuceb 3523fc8
Merge branch 'server-e2e-tests-allow-watch' into test-retries
kuceb 683a5da
Merge branch 'feature-test-retries' into isolated-runner-fixes
kuceb 140e75d
Merge branch 'isolated-runner-fixes' into test-retries
kuceb b2b9449
restore runner/test/eslintrc
kuceb 852a36c
use mocha pass event, move runner.spec to runner package
kuceb 62d14b8
fix .eslintignore
kuceb 33ec46b
remove npmInstall logic in helper/e2e script, force custom reporters …
kuceb e152091
temp 04/09/20 [skip ci]
kuceb 44fdc3b
add retries output to server/reporter, fix mocha pass event order, cl…
kuceb 341cd97
e2e tests - dont run electron tests in other browsers
kuceb 0e21e7a
Merge remote-tracking branch 'origin/develop' into test-retries
kuceb 45c8b59
Update readme to reflect how to start server for cypress tests
jennifer-shehane e85fc68
Merge remote-tracking branch 'origin/develop' into server-e2e-tests-a…
kuceb a2c40a1
Merge remote-tracking branch 'origin/develop' into server-e2e-tests-a…
kuceb bd478ed
fix after merge
kuceb d930174
Merge branch 'server-e2e-tests-allow-watch' into test-retries
kuceb a0b53ed
fix .coffee -> .js after merge
kuceb e87d68f
Merge remote-tracking branch 'origin/develop' into test-retries
kuceb a2e00ad
Merge remote-tracking branch 'origin/develop' into test-retries
kuceb 5d7f946
fix attempt.tsx
kuceb fcdc714
fix runnable titles emitted to terminal reporters
kuceb 189948d
Merge remote-tracking branch 'origin/develop' into test-retries
kuceb 45e1abc
fix more tests: update snapshots, fix 7_record_spec, 8_reporters_spec
kuceb d05d907
remove styling for 'attempt-error-region' so it's not indented
jennifer-shehane 8e95c5e
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb 2dd7b41
try 2: fix rerun before/after hooks
kuceb f73126c
Merge remote-tracking branch 'origin/isolated-runner-fixes' into isol…
kuceb 750571e
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb f2dc852
Merge branch 'fix-rerun-hooks-on-navigation' into isolated-runner-fixes
kuceb 6888b20
fix runner with only, runner snapshots, lint fixes
kuceb 5611d2e
Merge remote-tracking branch 'origin/test-retries' into test-retries
kuceb 9bd0a55
temp 04/29/20 [skip ci]
kuceb 44c69ff
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb e282289
backport changes from test-retries
kuceb 85503d3
change logic to rerun before hooks after top navigation
kuceb 46c116d
fix windowSize for browser e2e test
kuceb 590a573
fix windowSize for xvfb chrome in e2e test
kuceb 22d2780
ok fine, just disable screenshots
kuceb c82fb41
Merge branch '2-fix-rerun-hooks-on-navigation' into isolated-runner-f…
kuceb 1d54dbd
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb 4c88619
fix after merge: decaffed navigation.js
kuceb edbf156
update server/unit test snapshots
kuceb b13b9de
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb e7068e1
fix after merge: decaffed aliases.js
kuceb 98408a4
fix usage of cypress --parallel flag in circle.yml
kuceb 8ea4bbc
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb 8d30b64
fix circle.yml integration-tests jobs
kuceb 63c61a2
fix decaf related typo
kuceb aacc763
fix circle.yml separate command for runner-integration-tests
kuceb 7777d5a
update runner/integration tests + snapshot after error improvements
kuceb f0e0cd6
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb 8acbd6d
fix runner/integration snapshots for chrome/ff stacktrace differences
kuceb f82be9e
rerun ci
kuceb d3ed77d
fix passing --parallel to runner-integration tests
kuceb 6d1451d
Merge remote-tracking branch 'origin/develop' into 2-fix-rerun-hooks-…
kuceb ec77ac3
perf: faster lookup for hooks without runnables
kuceb 751e752
Merge remote-tracking branch 'origin/develop' into 2-fix-rerun-hooks-…
kuceb 6790888
fix afterAll hook switch logic
kuceb e1bc067
Merge remote-tracking branch 'origin/2-fix-rerun-hooks-on-navigation'…
kuceb fcca3fd
Merge branch 'isolated-runner-fixes' into test-retries
kuceb 71e2189
simplify mocha prototype patches
kuceb fbbf67f
fix decaf utils.coffee after merge
kuceb 2f06046
backport to before/after fix
kuceb 75bf3bf
Merge remote-tracking branch 'origin/develop' into 2-fix-rerun-hooks-…
kuceb d230c17
backport to before/after fix 2
kuceb fe79190
Merge remote-tracking branch 'origin/2-fix-rerun-hooks-on-navigation'…
kuceb 2e3993c
cleanup from decaf, fix ui/package.json
kuceb 52d7166
update helpers, simplify runner.spec
kuceb 73ee906
fix lint-types errors, flaky spec
kuceb 1f529df
Merge commit '73ee90675' into test-retries
kuceb f2977b7
fix noExit passed to e2e test inline options
kuceb 836fc0a
Merge remote-tracking branch 'origin/develop' into 2-fix-rerun-hooks-…
kuceb 70b9b09
Merge remote-tracking branch 'origin/2-fix-rerun-hooks-on-navigation'…
kuceb 16be5c2
cleanup snapshot utility - refactor to use util file
kuceb bee8408
remove before/after changes
kuceb 2a1fc2a
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb d82f8b4
make cy obj a class instance
kuceb 90ba8ba
cleanup/unmerge before/after fixes PR...
kuceb 6500edc
more cleanup
kuceb 156d51b
add comment
kuceb 5a8e064
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb e57b576
fix runner.spec
kuceb a77a0b6
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb 93943e5
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb ece0481
cleanup snapshot utility more, cleanup reporter.spec
kuceb dd827ee
fix after merge
kuceb aaf657f
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb 230ffef
minor rename variable
kuceb afb2185
Merge branch 'isolated-runner-fixes' into test-retries
kuceb 3d3da8a
fix after merge: decaffed files
kuceb 1378233
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb edd75b0
fix specName in reporterHeader, spec_helper require
kuceb 9143eef
replace reporter specPath usages with spec object from config
kuceb 1348b35
cleanup, fix specs, fix types tests
kuceb 87db3c8
Merge branch 'chore-refactor-specpath-reporter-use' into isolated-run…
kuceb 1ab5d71
fix config spec paths in isolated runner, fix snapshot plugin button
kuceb 9211e53
combine runner.spec.js and runner_spec.js
kuceb 5a9a7a8
fix incorrect merge
kuceb fec95de
minor minor cleanup
kuceb 0872413
rename driver/test/cypress to driver/test
kuceb f658ea6
use yarn workspace over lerna for individual package commands
kuceb 042b9bb
Merge branch 'chore-use-yarn-workspaces-over-lerna' into chore-move-d…
kuceb 18239dd
add error message to driver start
kuceb ffd7875
remove usage of wait-on
kuceb b696f6b
update <reference types/>, import string
kuceb 72a3fce
Merge remote-tracking branch 'origin/develop' into chore-move-driver-…
kuceb 3888716
fix driver/readme
kuceb ab57cdc
fix readmes after regex replace
kuceb ca20729
Merge remote-tracking branch 'origin/develop' into chore-use-yarn-wor…
kuceb 3c2927b
Merge branch 'chore-use-yarn-workspaces-over-lerna' into chore-move-d…
kuceb 6de684c
revert wait-on changes
kuceb fc56b8e
Merge branch 'chore-use-yarn-workspaces-over-lerna' into chore-move-d…
kuceb 930b718
Revert "revert wait-on changes"
kuceb f2b8c4e
update yarn.lock
kuceb e6bcb4f
fix broken path in spec
kuceb 55a16cb
fix broken paths in specs with @packages/driver
kuceb df9d0d4
move runner/test/cypress into runner/cypress
kuceb 7d736cc
Merge branch 'chore-move-driver-tests-into-parent' into isolated-runn…
kuceb 002d037
start server in pluginsFile in runner/cypress tests
kuceb 1f78711
fix more broken spec paths
kuceb 35619a7
Merge branch 'chore-move-driver-tests-into-parent' into isolated-runn…
kuceb 6d5d32e
fix broken paths after runner/cypress folder move
kuceb cd7b49f
Merge remote-tracking branch 'origin/chore-use-yarn-workspaces-over-l…
kuceb 8fc44d2
Merge remote-tracking branch 'origin/develop' into chore-move-driver-…
kuceb 748b9a7
Merge branch 'chore-move-driver-tests-into-parent' into isolated-runn…
kuceb f1f9dde
move type definition loading for driver/cypress into dedicated file
kuceb b696fbb
move internal-types to "types" folder, fix driver/index.d.ts
kuceb c091b20
Merge branch 'develop' into isolated-runner-fixes
brian-mann 0c7dffa
Merge branch 'develop' into chore-move-driver-tests-into-parent
brian-mann 8882130
fix type-check in packages/runner. not exactly sure why
kuceb 096bbf9
fix runner type-check by excluding test folder in tsconfig
kuceb e3257bf
bump timeout on e2e/8_error_ui_spec
kuceb f5bc2ed
update snapshot utility, rename tests in runner/runner.spec, fix READ…
kuceb 0cb50b3
Merge branch 'isolated-runner-fixes' into test-retries
kuceb c4bc864
delete old spec
kuceb 5597ec4
Merge branch 'chore-move-driver-tests-into-parent' into isolated-runn…
kuceb fe5ece1
Merge remote-tracking branch 'origin/develop' into chore-move-driver-…
kuceb 3f4d7df
Merge branch 'chore-move-driver-tests-into-parent' into isolated-runn…
kuceb c19f6c2
fix snapshot naming, remove redundant test in reporter_spec
kuceb 2ec185f
fix file renames after merge
kuceb 6b655e9
Merge branch 'isolated-runner-fixes' into test-retries
kuceb 40682e5
rename runner/ snapshot
kuceb a715439
update server/unit/reporter_spec snapshot
kuceb 9a74188
update runner/runner_spec snapshot
kuceb 489be5d
rename runner snapshot file
kuceb 4ea9cbe
address feedback: move server reporter snapshot specs out
kuceb 1a0ac78
address feedback: add comment about exposing globals
kuceb 5726ec9
fix test-retries after merging isolated-runner
kuceb af6ddd4
Merge branch 'isolated-runner-fixes' into test-retries
kuceb f2ad5cb
fix runner/test helper, update snapshot
kuceb 121fafb
Merge remote-tracking branch 'origin/develop' into isolated-runner-fixes
kuceb 2952a78
Merge branch 'isolated-runner-fixes' into test-retries
kuceb 09ca4a0
address feedback: split out runner/retries spec, move reporter/ui tes…
kuceb 91fbf66
fix scrolling, attempt opening, update snapshots
kuceb 952189b
fix e2e support file
kuceb e7a4ab7
Merge remote-tracking branch 'origin/develop' into test-retries
kuceb d198a69
fix 5_spec_isolation
kuceb 2a8d06d
fix mislabeling attempt screenshots
kuceb 367132a
only add test results prevAttempts if exists
kuceb 8ac878a
fix reporter/unit tests, server/unit tests
kuceb f97a85c
remove dead code, fix test isOpen
kuceb bc6b9f4
update snapshots for retries.mochaEvents, fix snapshot error in state…
kuceb 691eafc
new moduleAPI schema using attempts array, fix wrapping errors from h…
kuceb 04bd5ef
add displayError, null out fields in moduleAPI schema
kuceb a51669d
change default retries to {runMode:2, openMode:0}
kuceb 48ebd4f
fix reporter type-check
kuceb 1dd04da
upgrade json-schemas, update snapshots
kuceb 8723bb7
reformat error.stack to be only stacktrace, update snapshots
kuceb ec379d3
fix stacktrace replacing in 5_spec_isolation
kuceb 11dc267
fix navigation error causing infinite reloading, bump timeout on e2e/…
kuceb 278d92a
Merge remote-tracking branch 'origin/develop' into test-retries
kuceb 4b39bd7
fix server/unit tests for new schema
kuceb 0dc2a2a
fix reporter/unit tests
kuceb de651fa
fix reporting duplicate screenshots using cy.screenshot during test r…
kuceb 755080d
update snapshot for 6_uncaught_support_file_spec
kuceb 37ca121
Merge remote-tracking branch 'origin/develop' into test-retries
kuceb b6d63ba
Merge remote-tracking branch 'origin/v5.0-release' into test-retries
kuceb b990060
bump x-route-version: 3
kuceb e95cf9a
fix test.tsx collapsible content, css, fix e2e/8_error_ui, e2e projec…
kuceb 126bc9e
fix css, fix padding in runnable-instruments, fix runner/integration …
kuceb 14be2ec
Merge remote-tracking branch 'origin/develop' into test-retries
kuceb 7cdcaf3
fixup after merge
kuceb 73c7b08
fix reporter/runner to work with split hooks
kuceb 846449d
Merge remote-tracking branch 'origin/develop' into test-retries
kuceb d66b04d
update api tests, runner/cypress tests, reporter
kuceb 0b515b1
Merge remote-tracking branch 'origin/develop' into test-retries
kuceb fbb02a2
fix 5_spec_isolation snapshots, fix runner/cypress errors.spec, fix n…
kuceb b5bf523
Merge remote-tracking branch 'origin/v5.0-release' into test-retries
kuceb 91afb75
fix e2e/non_root spec, fix type_check, fix reporter/unit tests
kuceb 0d4650b
setup percy snapshots in runner/cypress, fix driver/runner test:after…
kuceb 3152e3e
add customPercySnapshot
kuceb 3ecb65e
fix circle.yml
kuceb 7c1ee28
fix circle.yml 2
kuceb e3ec883
fix circle.yml 3
kuceb b248010
add warning for incompatible retries plugin
kuceb f692bc5
add more percy snapshots
kuceb fabced7
fix firefox screenshot resolution in e2e test
kuceb 8b3ba9c
Merge remote-tracking branch 'origin/v5.0-release' into test-retries
kuceb c43d39f
Fix testConfigOverrides not affecting viewport (#8006)
kuceb 87eec3e
finish adding percy snapshots to runner/cypress retries spec, update …
kuceb 4a74890
Merge branch 'v5.0-release' into test-retries
brian-mann e5d1626
remove .only
brian-mann 1bc7c3c
Merge branch 'v5.0-release' into test-retries
brian-mann 342bb14
fixing missing repo argument
brian-mann a947761
fix testConfigOverrides usage with retries, fix test
kuceb f570157
fix issues from previous merge
kuceb 87aae16
add script that can query CircleCI workflow status
bahmutov c59ae4e
add circleci job to poll
bahmutov 6d9d376
add retries
bahmutov 638345d
try yarn lock
bahmutov f17560c
retry, percy finalize
bahmutov b21494a
check for current running job
bahmutov a415fd1
do not swallow request error
bahmutov 85cac6f
better print
bahmutov c57775c
use job name from circle environment
bahmutov 97b3190
use debug instead
bahmutov 3d53bd8
renamed circle polling script
brian-mann 305a7bc
refactor circle to conditionally run percy-finalize when env var is a…
brian-mann 2f26f8d
use multi-line strings and quote --job-names
brian-mann 8b7ee59
add comment
bahmutov b708502
Merge branch 'test-retries' of github.com:cypress-io/cypress into tes…
bahmutov bb02f65
only poll until the jobs to wait for are blocked or running
bahmutov 4c42a44
fix running hooks at correct depth after attempt fails from hook and …
kuceb 4ac06f4
fix reporter/unit tests, remove unused toggleOpen code
kuceb 8510ea6
move custom percy command into @packages/ui-components and apply them…
brian-mann 19d4a8b
halt percy finalize job if env variable is not set
bahmutov 748d6f4
if only I could code
bahmutov 88c535a
update runner/cypress mochaEvent snapshots, fix e2e firefox resolution
kuceb f80325f
fix css for attempt border-left, fix attempt-tag open/close icon, add…
kuceb 8ec9c11
try percy set viewport width
kuceb e8f5487
set default retries back to {runMode:0, openMode:0}
kuceb 0ca34aa
formatting: add backticks to warning message
kuceb f5bb489
write explicit test for screenshot overwriting behavior, fix snapshot…
kuceb 518e730
fix e2e.it.only`
kuceb 00e7698
cleanup whitespace
kuceb 44e3e90
Merge remote-tracking branch 'origin/v5.0-release' into test-retries
kuceb 7d7f723
update snapshots
kuceb dd6ea92
Merge remote-tracking branch 'origin/v5.0-release' into test-retries
kuceb c5f2b04
fix cypress module API types for new result schema
kuceb ad4dc55
build and upload binary for test-retries branch too (linux)
bahmutov 3be9ff8
add pre-release PR comment
kuceb dff06aa
fix pre-release commit comment
kuceb c150111
rename runner/cypress test
kuceb 2fb38df
update retries.ui.spec test titles
kuceb cd1119b
Merge remote-tracking branch 'origin/v5.0-release' into test-retries
kuceb df26592
fix after merge: use most recent attempt for before/after hooks
kuceb 608fd72
Merge remote-tracking branch 'origin/v5.0-release' into test-retries
kuceb 6988ef0
add suite title to hook error in runner/cypress tests
kuceb b0e7db2
Merge remote-tracking branch 'origin/v5.0-release' into test-retries
kuceb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const _ = require('lodash') | ||
const chai = require('chai') | ||
const utils = require('chai/lib/chai/utils') | ||
const Assertion = require('chai/lib/chai/assertion') | ||
const Core = require('chai/lib/chai/core/assertions') | ||
const Expect = require('chai/lib/chai/interface/expect') | ||
const Should = require('chai/lib/chai/interface/should') | ||
const Assert = require('chai/lib/chai/interface/assert') | ||
|
||
const CHAI_STATIC_PROPS = ['config', 'version', 'use', 'util', 'AssertionError'] | ||
|
||
const create = () => { | ||
const used = [] | ||
|
||
const obj = _.pick(chai, CHAI_STATIC_PROPS) | ||
|
||
obj.use = function (fn) { | ||
if (!~used.indexOf(fn)) { | ||
fn(this, obj.util) | ||
used.push(fn) | ||
} | ||
|
||
return this | ||
} | ||
|
||
Assertion(obj, obj.util) | ||
Core(obj, obj.util) | ||
Expect(obj, obj.util) | ||
Should(obj, obj.util) | ||
Assert(obj, obj.util) | ||
|
||
return obj | ||
} | ||
|
||
module.exports = { | ||
utils, | ||
|
||
create, | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can already be done by
cy.stub(...).log(false)