Commit Graph

63 Commits

Author SHA1 Message Date
Jennifer Shehane
c5af554dca bump deps for security warnings (#2067)
- removes security warning during npm audit
- close #1701
2018-06-30 04:48:03 -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
Jennifer Shehane
453313fe92 bump cachedir to 1.3.0 (#1947) 2018-06-14 23:52:39 -04:00
Josh Pike
40c3a6b104 Updated request in CLI package.json (#1916) 2018-06-09 16:23:17 -04:00
Gleb Bahmutov
ff58367838 Ts definition for clear local storage 1899 (#1903)
* types: clearLocalStorage yields localStorage, close #1899

* types: minimatch is a function, close #1902
2018-06-07 20:10:45 -04:00
Ben Kucera
56e00981aa cache commands, --no-exit (#1875)
* add --no-exit, cache commands

* Manage -> Manages

* fix run, run spec

* remove comments
2018-06-05 16:19:23 -04:00
Gleb Bahmutov
1d43023064 cli: bump chalk to 2.4.1 close #1800 (#1801) 2018-05-29 14:23:42 -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
1f1935b361 Show help on unknown option 837 (#1615)
* cli: if user passed unknown option, show help and exit, close #837

* cli: test unknown option output

* linting
2018-05-15 15:10:26 -04:00
Gleb Bahmutov
97e3092300 cli: pass timeout 5 seconds for XVFB, close #1628 (#1629) 2018-04-23 16:16:57 -04:00
Gleb Bahmutov
b839828fd4 place package keywords in root package.json, close #1508 (#1575)
* place package keywords in root package.json, close #1508

* update test snapshot

* add cypress.io keyword
2018-04-15 01:50:40 -04:00
Zaid Hoona
6dd7edea5c Add keywords to allow searching cypress in npmjs.com (#1522)
* Add keyword in package.json
* Also add keywords to the build script
2018-04-09 13:06:38 -04:00
Gleb Bahmutov
99302267df Banner to separate test output (#1190)
* cli: add mocha-banner so we can see what each test outputs

* linting
2018-01-16 13:22:00 -05:00
Brian Mann
17d1f85ec8 cli: bump xvfb 2017-12-25 00:07:36 -05:00
Brian Mann
3dafede470 server: fixes #977, capture stdout in windows (#1129)
* server: fixes #977, capture stdout in windows

* driver: skip flaky tests for now

* root: fix breaking eslint due to 4.14.0

* cli: bump xvfb to make node4 happy

* cli: bump xvfb fix context
2017-12-24 21:49:00 -05:00
Brian Mann
d54156e2f2 cli, fixes #921, #1113, #1126, #1127, make DEBUG logs work, show error when xvfb exits with status code 1, force tty in linux, handle colors in windows, enable logging cypress:xvfb stderr
* cli: fixes #838 start cypress in dev by routing through the CLI

- matches how we run in production better to keep parity and consistency

* cli: add coerceFalse for clarity

* cli: add global flag, update to work with windows

* server: bring into parity with root scripts

* cli: just execute start script directly to work with windows

* cli: if colors are supported then force them via env vars

- this fixes windows not displaying colors from electron because by
default isTTY is false (due to electron)

* cli: fixes #921 don't ignore stderr, inherit stdio on everything except when linux + xvfb

- filter out stderr messages coming from Xlib or libudev (from xvfb)

* cli, server: force stderr tty so that normalize tty behavior when piping

* server: drop in supports color so debug outputs more colors!

* server: remove empty line

* root: refer to cypress not monorepo

* cli: make util.supportsColor return boolean

* cl: add tests around spawn behavior with forcing colors, tty, and stdio configuration

* cli: handle xvfb onStderrData callback to output debug information

* cli: handle non zero exit code error from xvfb with special message
2017-12-24 19:03:57 -05:00
Gleb Bahmutov
ad0357dce0 cli: upgrade debug and extract-zip, close #1103 (#1104) 2017-12-21 20:17:29 -05:00
Nicholas Boll
5d761630f2 chore: Update type definitions to match API more closely (#1048)
* chore: Fill out Cypress API types

* chore: Convert Chainable into a Generic with a subject

* chore: undefined return of then keeps Subject

* fix: Remove incorrect comment

* chore: Add element keys to all selector methods

* chore: Remove generic from cy.not - it doesn't make sense

* chore: Add ChainableArray for array Subjects

* chore: Add ChainerArray to thread types through

* chore: Remove ChainableArray interface

* chore: Fix stub/spy types - returns Agent interface
2017-12-11 21:45:39 -05:00
Nicholas Boll
6db7a83125 chore: Add dtslint and Cypress static types (#1044)
* chore: Add dtslint and Cypress static types

* chore: Fix types location for cli build

* chore: Removed api from api command paths

* chore: Remove semicolons from type definitions

* chore: Removed semicolons not caught by tslint

* chore: Add type tests
2017-12-08 16:41:34 -05:00
Gleb Bahmutov
1b89e31526 Include typescript definitions 856 (#979)
* start including Cypress TypeScript definitions in CLI for #856

* document cy.type and cy.focused

* document cy.document and Loggable

* document cy.window()

* document cy.trigger methods

* document more interfaces

* document Cypress object

* cli: use existing build script for copying typescript definitions
2017-11-30 14:44:40 -05:00
Brian Mann
1b05df6d29 fixes #899 stringify reporterOptions like env and config (#900) 2017-11-09 16:38:53 -05:00
Gleb Bahmutov
d217d0e9d2 cli: pass group and groupId flags, close #455 (#836)
* cli: pass group and groupId flags, close #455

* upgrade commander to latest

* latest command moved options in help below command

* update tests, make sure -v, --version and version work

* run test one more time
2017-10-27 13:18:21 -04:00
Gleb Bahmutov
8466e374f3 working on installing from local binary file (#797)
for #701 

* working on installing from local binary file

* fix missing return

* enabled skipped zip file test

* test zip file and up in two folders

* test direct zip file install on CircleCI

* Remove artificial delays
2017-10-23 21:03:47 +00:00
Gleb Bahmutov
a897e3690d pipe streams and ignore stderr, close #557 (#560) 2017-10-04 20:39:25 +00:00
Gleb Bahmutov
907254b2ac cli: fix unit test for windows 2017-09-27 15:01:01 -04:00
Gleb Bahmutov
a0c08bbdf3 Windows support (#484)
* try installing on Windows

* Handle windows setup

- no browser detection on windows yet, just placeholder code
- symlink types

* add appveyor file

* add appveyor windows build

* use execa to run server unit tests

* run server unit tests on appveyor

* ignore root install errors

* upgrade rebuild-node-sass

and work on Json unit test that fails on Windows

* print npm version

before installing, commented out caching node modules in the root

* a few small tweaks for windows support

* fix bin-up in launcher project

use bin-up@1.1.0 for windows support, close #491

* cli: build script on Windows, close #492

* cli: build errors are fatal

* use cross-env in extension

Fixes environment variables on Windows in #490

* extension: fix 3 tests on Windows

1 more broken test remaining

* extension: use EOL before comparing text

* example: update test for Windows

* example: replace build.sh with build.js

Close #488

* remove trailing whitespace

* cli: build script again

* server: work on unit tests for windows

* binary: add windows as build platform

* windows: try building binary

started work on building on CI for windows
2017-09-25 10:17:28 -04:00
Gleb Bahmutov
70a7fa0572 cli: exit with error code 1 on invalid command (#461) 2017-09-13 12:37:15 -04:00
Gleb Bahmutov
2f496fcfc8 cli: upgrade snap-shot-it to avoid text on first line of snapshot (#443) 2017-09-11 16:59:48 -04:00
Brian Mann
bf42af168c cli: bump internal releaser dep [skip ci] 2017-09-10 21:45:54 -04:00
Brian Mann
4fcb1685c8 cli: test-debug command ftw 2017-09-06 02:54:14 -04:00
Gleb Bahmutov
fb06f1ba93 cli: show error on unknown command, close #414 2017-09-05 12:58:23 -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
84950fe3aa cli: try stripping ansi codes, who knows 2017-09-04 14:39:52 -04:00
Brian Mann
2be65b47b4 cli: prune existing unused snapshots 2017-09-04 13:26:55 -04:00
Brian Mann
f740506f05 cli: deps bump sinon for bug fixes 2017-09-04 02:55:31 -04:00
Brian Mann
42ca775755 cli: WIP, move to listr for user notifications, extract and begin refactoring into multiple tasks and files
- cleaned up lots of redundant error handling
- do not ever forcibly exit early
- add user messaging for global installations
- add user messaging for opening cypress
- enable CYPRESS_BINARY_VERSION to be set, with warning
2017-09-03 21:28:59 -04:00
Brian Mann
baf20d48a5 set node engines for the CLI 2017-09-02 22:48:38 -04:00
Brian Mann
2151c18f84 Merge branch 'develop' into cli-log-snapshots 2017-09-02 22:33:33 -04:00
Brian Mann
0e36be10bf cli: bump xvfb dep to fix bugs 2017-09-02 15:53:20 -04:00
Chris Breiding
1fac6d58d9 snapshot various log states (wip) 2017-09-01 17:26:08 -04:00
Brian Mann
579608ce95 cli: fixes #405 replace old snapshot with snap-shot-it 2017-09-01 00:50:07 -04:00
Brian Mann
22042cecd9 cli: bump chalk dep back up 2017-09-01 00:41:31 -04:00
Chris Breiding
3fcb691bd1 Merge branch 'develop' of github.com:cypress-io/cypress-monorepo into develop 2017-08-31 17:05:09 -04:00
Chris Breiding
6535a1e6f0 cli: set cwd as project path if not installed globally 2017-08-31 16:58:50 -04:00
Gleb Bahmutov
36f02124ef cli: downgrade chalk for Node 0.12 clients, close #402 2017-08-31 16:46:35 -04:00
Brian Mann
5ebca5d839 cli: remove duplicate multi reporter config json 2017-08-29 14:46:12 -04:00
Gleb Bahmutov
ab4fb80c9e Ingest test artifacts from CircleCI 339 (#342)
* capture test results from CLI unit tests for #339

* add test results to packages/extension

* move mocha to root

* mocha test reporter for packages/launcher

* update socket reporter

* collect server unit test results

* store test results from server integration and e2e runs

* exclude projects from .only check
2017-08-14 15:25:49 -04:00
Jennifer Shehane
17777514cc Updated chalk deps to version 2.0.1 2017-07-07 16:32:07 -04:00
Gleb Bahmutov
7eb03cfaad Issue 200 (#213)
* cli: use @cypress/sinon-chai, close #200

* server: use @cypress/sinon-chai

* driver: use @cypress/sinon-chai instead of git reference
2017-06-26 10:09:48 -04:00