Josh Ward
482358b824
feat: add CYPRESS_SKIP_VERIFY option to suppress verification ( #29836 )
...
* misc: add `CYPRESS_SKIP_VERIFY` option to suppress verification
* Update CHANGELOG.md
* Move changelog entry to feature
* Whoops - features
* Update CHANGELOG.md
* Update cli/lib/tasks/verify.js
Co-authored-by: Bill Glesias <bglesias@gmail.com >
* Update cli/lib/tasks/verify.js
Co-authored-by: Bill Glesias <bglesias@gmail.com >
* Update cli/lib/tasks/verify.js
Co-authored-by: Bill Glesias <bglesias@gmail.com >
* Appease the linter
---------
Co-authored-by: Jennifer Shehane <jennifer@cypress.io >
Co-authored-by: Bill Glesias <bglesias@gmail.com >
2024-08-16 12:45:34 -04:00
Bill Glesias
c1304b2775
fix: avoid ANSI character output when running the binary smoke test f… ( #28994 )
2024-02-22 14:29:49 -05:00
Emily Rohrbough
f53ca92f5c
fix: no longer swallow stderr logs on linux ( #28380 )
2023-12-05 10:12:14 -05:00
Pascal Gafner
576519e465
fix: use util.getEnv to handle environment variables set with npm ( #19560 )
...
Co-authored-by: Matt Henkes <mjhenkes@gmail.com >
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com >
2022-01-12 08:52:26 -06:00
Tyler Biethman
7476843d80
fix: Use CYPRESS_VERIFY_TIMEOUT as integer. ( #19517 )
...
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com >
2022-01-04 11:19:49 -06:00
Pascal Gafner
b3d114e086
fix: add CYPRESS_VERIFY_TIMEOUT param and a test for it ( #19282 )
...
Co-authored-by: Matt Henkes <mjhenkes@gmail.com >
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com >
2021-12-20 11:36:38 -05:00
Nikolai Røed Kristiansen
39e1786211
chore: Vendor @cypress/listr-verbose-renderer ( #16855 )
2021-06-08 14:08:14 -05:00
Braden Mars
315d845432
fix: Migrate from listr to listr2 ( #16663 )
2021-06-01 10:26:03 -04:00
Gleb Bahmutov
84d1afd27d
feat: print bundled Node and Electron versions in cypress version ( #9183 )
2020-11-16 13:17:24 -05:00
Jennifer Shehane
c40461fa22
Don't print 'first time' message if verification is running fro… ( #6640 )
...
* don't like 'first time' message if verification is running from 'cypress verify'
* updates snapshots to remove 'first time message' from verify specs
2020-03-16 12:18:38 +06:30
renovate[bot]
eab801ae3f
chore(deps): Update dependency eslint to version 6.8.0 🌟 ( #6509 )
...
* chore(deps): Update eslint to 6.8.0 🌟
* fix missing dangling commas for linter
* fix missing dangling commas for linter
* more lint fixes
* yarn lock
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com >
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com >
2020-02-25 00:09:47 +06:30
Gleb Bahmutov
fcc252e94d
Always use --no-sandbox with Electron on non-Windows system ( #5458 )
...
* WIP: add failing test job with non-root user
* change paths to node user
* print more info
* always use --no-sandbox when starting Electron on non-Windows OS
* add another test job that runs as a root
* use tilda
* use 12.0.0 image
* rename job
2019-10-25 10:54:03 -04:00
Ben Kucera
653f52dc3c
upgrade eslint-plugin-dev to 5.0.0 ( #5382 )
...
* upgrade eslint-plugin-dev to 5.0.0
* more [lint fixes]
2019-10-17 11:40:53 -04:00
Gleb Bahmutov
73e3c7c346
add sandbox argument to [build binary] ( #5197 )
...
* add sandbox argument to [build binary]
* relative path
* ughh [build binary]
2019-09-25 08:03:03 -04:00
Zach Bloomquist
7c68c41e88
add --no-sandbox to smoke test ( #5196 )
...
* add --no-sandbox to smoke test
* Update verify.js
* appease linter [build binary]
* Update verify_spec.js
* [build binary]
* add test [build binary]
* Update verify_spec.js
* Update verify_spec.js
* update unit test
2019-09-24 21:49:38 -04:00
Gleb Bahmutov
11784c3af2
CLI: increase smoke test timeout to 30s ( #4859 )
...
* CLI: increase smoke test timeout to 30s
* hmm install reformarrted some files
* remove formatting changes
* update unit test
* add small test to confirm timeout property
* revert example changes
2019-07-29 12:59:12 -04:00
Ben Kucera
fbd523615e
[internal] Lint typescript, json, new eslint rules ( #4449 )
...
* temp 07/01/19 [skip ci] main lint files
* use lint-staged scripts
* fix all auto-fixable eslint errors
* manually fix lint issues in files
* temp 07/01/19 [skip ci]
* bump eslint plugin versions, update circle.yml
* [lint fix] remaining js files
* update vscode/settings.json
* add back stop-only
* use stop-only for linting .onlys
* fix verify_spec, build_spec
* update json plugin
* relint & apply corrections
* fix appveyor.yml not cleansing env vars (very bad)
* dont echo commit message in appveyor script
* retry build &
* re-add & upgrade lint-staged
* update contributing docs
* only let stop-only catch staged changes
2019-07-12 13:59:44 -04:00
Brian Mann
6850e68b48
do not mutate process.env when verifying ( #4281 )
2019-05-22 17:12:13 -04:00
Jennifer Shehane
cacd122c67
Fix mixed use of both XVFB and Xvfb to all be Xvfb ( #4262 )
2019-05-21 10:33:59 -04:00
Brian Mann
77c62e010b
improve CLI verify + run display warnings ( #4230 )
...
* tighten up potential xvfb display problems
- improve the warning message on possible display problems
- reuse existing helper functions for platform detection
- instead of relying on timing mechanisms, if a possible display
problem is detected on linux - capture all of the stderr silently and
if the broken gtk message is detected, retry running
* consolidated and simplified smoke testing, xvfb error logging and messaging
- added —dev support to cypress verify cli command
* fix lots of tests, restore one error message
* fixed remaining CLI tests
* console.log pong only in electron mode
* remove dead code
2019-05-17 09:12:03 -04:00
Gleb Bahmutov
ebb8afdff4
logger warn from CLI should strip all indent from nested message ( #4188 )
2019-05-13 18:27:26 -04:00
Gleb Bahmutov
d25cfacc6f
Automatically retry verify and run commands on Linux if suspect DISPLAY problem ( #4165 )
...
* cli: debug explanation for XVFB
* linting
* add chai-as-promised to CLI dev
* show Linux specific error solution if cannot verify
* add todo
* chore: consolidate github issue url logic
* linting
* add npm script lint-changed to quickly eslint fix changes JS files
* retry verify with our XVFB
* update errors and tests
* update CLI tests
* add test for display error message
* fix unit test
* add successful test with retry
* finish verify retry test
* warn users if hit display problem on first verify
* try to detect display problem when running electron and retry with our xvfb
* add warning message to spawn when attempting xvfb re-run
* add test for display retry behavior on spawn
* more comments for clarity
* fix typo
2019-05-13 15:19:53 -04:00
Ben Kucera
1f0071002b
Add timeout for cli/verify smoke test ( #4080 )
...
* temp 04/29/19 [skip ci] cli verify timeout
* add smoke test timeout error and tests
* cleanup code
* normalize snapshots for ci
* remove promise cancellation config
* cleanup error messaging and spacing for displaying the error details + descriptions
Co-authored-by: Brian Mann <brian.mann86@gmail.com >
2019-05-02 15:20:58 -04:00
Brian Mann
2333d04a54
secure cookie error crash ( #2685 )
...
- fixes #1264
- fixes #1321
- fixes #1799
- fixes #2689
- fixes #2688
- fixes #2687
- fixes #2686
2018-11-01 12:34:37 -04:00
Ben Kucera
f90bfbec90
update ci error msg ( #1928 )
2018-06-20 00:14:15 -04:00
Ben Kucera
db4a4a6d22
Improve Error logging around Cypress verify ( #1986 )
...
close #1984 improve error logging for `cypress verify`
close #1985 remove "skipping install" message to local users, keep in CI
2018-06-19 21:52:25 -04:00
Ben Kucera
5a4b2a4a0a
allow relative paths in CYPRESS_* env vars ( #1989 )
2018-06-19 17:34:51 -04:00
Ben Kucera
ca9cb8f10b
env vars from configs, respect loglevel from npm ( #1855 )
2018-06-05 15:14:51 -04:00
Ben Kucera
08d75f552f
fix cli --version ( #1803 )
2018-05-29 15:39:18 -04:00
Brian Mann
1d0b35bd47
Cli env var changes ( #1734 )
...
* wip [skip ci] update
* wip [skip ci] update test
* [skip ci] fix env var
* bump sinon, create helper utility to always throw when a stub is called without being given stubbed behavior
* update failing specs
* fix some error messages
* update snapshot
* warning -> note, add snapshot tests
* change snapshot os.release, test env vars
2018-05-19 15:37:52 -04:00
Ben Kucera
8a55864ae9
CLI caching ( #1699 )
...
* WIP [skip ci] tests passing -1
* WIP [skip ci] tests passing -1
* [WIP] [skip ci] more passing tests
* add run,open,verify cli tests
* fix package.json
* fix install_spec
* rename info_spec -> state_spec
* refactor cli options
* more useful logging
* change binary location, change folder name
* fix --binary-path arg
* update error message for cache
* lib/tasks/install.js changes
* add progress for direct unzip, prefer cache with override version with url/zip
* update cli logs
* prettier logs, remove arg
* fix failing test- stub os.release
* fix cli_spec snapshot, remove group and groupid args
2018-05-16 04:34:12 -04:00
Gleb Bahmutov
d22eb13e92
Verify command 545 ( #550 )
...
* find single line with ping value, close #545
* linting
2017-10-03 20:50:11 +00:00
Gleb Bahmutov
2a093afdf8
win: zip and unzip
2017-09-27 11:08:07 -07:00
Brian Mann
2b415cab4c
cli: verify against installed version not package version when displaying first time opening message
2017-09-16 19:21:00 -04:00
Brian Mann
c1db121dd6
cli: disable welcome message when manually verifying, otherwise display
2017-09-05 01:26:37 -04:00
Brian Mann
46dcca7fd0
cli: add 'Opening Cypress...' message on first verification
2017-09-04 18:39:39 -04:00
Brian Mann
3f9c3256de
cli: forked verbose renderer to prevent double error output in CI
2017-09-04 17:57:42 -04:00
Brian Mann
335553f94b
cli: when running in CI, use a different renderer to prevent ugly stream of stdout updates
2017-09-04 16:24:41 -04:00
Brian Mann
bbe2db065d
cli: snapshot tests around verify
2017-09-04 11:25:11 -04:00
Brian Mann
173849f4ab
cli: normalized all start methods
2017-09-04 00:00:41 -04:00
Brian Mann
143640c828
cli: refactor verify, better error handling, use listr for messaging, clearer errors
2017-09-03 23:40:52 -04:00
Brian Mann
c1eb1a9663
cli: WIP rename utils -> info
2017-09-02 23:59:56 -04:00
Brian Mann
983b34d740
cli: WIP extracted concerns into multiple files
2017-09-02 23:58:16 -04:00