Commit Graph

197 Commits

Author SHA1 Message Date
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 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
Brian Mann 61bcefab91 cli: WIP rename download -> tasks, begin extracting out concerns 2017-09-02 23:53:33 -04:00
Brian Mann a8af8add25 cli: remove unnecessary sample project 2017-09-02 23:36:00 -04:00
Brian Mann f29b3b9b1f cli: code cleanup, formatting, content improvements 2017-09-02 23:34:05 -04:00
Brian Mann 98724366fd cli: move package version check to utility function 2017-09-02 23:33:45 -04:00
Brian Mann 1e1a58330d cli: rename exitGracefully to exit1, DRY up usage 2017-09-02 23:33:23 -04:00
Brian Mann c0bb28d20f cli: consolidate usage of fs-extra 2017-09-02 23:31:50 -04:00
Brian Mann 2151c18f84 Merge branch 'develop' into cli-log-snapshots 2017-09-02 22:33:33 -04:00
Brian Mann 0770f06574 cli: properly chain xvfb stop promise so cypress runs correctly in linux
- better debug logs
- use close event, not exit
2017-09-02 15:55:24 -04:00
Chris Breiding 1fac6d58d9 snapshot various log states (wip) 2017-09-01 17:26:08 -04:00
Brian Mann 3607a08efb cli: remove passing in --cli-version to binary 2017-09-01 00:55:27 -04:00
Chris Breiding cf9d43f0d4 cli: always set project to cwd for cypress run 2017-08-31 17:20:31 -04:00
Chris Breiding d5e0ae3c96 cli: don’t log that we’re verifying unless we’re verifying 2017-08-31 17:08:08 -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 df737cc2fc cli: remove -r alias to --record option, close #360 (#361) 2017-08-23 12:18:33 -04:00
Chris Breiding 4f927c7a2f eslint fixes 2017-08-22 15:08:27 -04:00
Gleb Bahmutov b1501e9410 Show path to Cypress executable during verify command (#288)
* cli: show path to Cypress executable on verify

* add test for displayed cypress executable path

* cli: some UI color improvement to messages
2017-07-10 10:25:00 -04:00
Gleb Bahmutov 99c9ce012c cli: verify uses smoke test without opening a project, close #248 (#250)
* cli: verify uses smoke test without opening a project, close #248

* cli: updated tests

* cli: remove duplicate text from test
2017-06-30 17:24:10 -04:00
Brian Mann 0a43ad40a3 cli: use fs async methods 2017-06-29 13:32:46 -04:00
Gleb Bahmutov 3cbe9a0356 test zip install 2017-06-28 17:33:03 -04:00
Gleb Bahmutov 188708275c cli: allow installing local binary zip file, close #233 2017-06-28 17:11:34 -04:00
Gleb Bahmutov d9fc7f68a5 working on binary zip and unzip (#222)
* working on binary zip and unzip

* ignore support folder
2017-06-27 09:40:10 -04:00
Gleb Bahmutov 4520c2b6dd feat(run): handle failed tests returned by the cypress run (#180)
* feat(run): handle failed tests returned by the cypress run

* cli: rework errors thrown from cypress vs xvfb

* small tweak

* cli: test xvfb start error handling
2017-06-22 12:00:17 -04:00
Gleb Bahmutov 708a57ccd6 cli: use published @cypress/xvfb package, close #168 (#178)
* cli: use published @cypress/xvfb package, close #168

* public xvfb version

* remove pre-git

* cypress/xvfb name 1.0.3

* remove commit wizard script
2017-06-21 14:19:35 -04:00
Gleb Bahmutov 9b28249152 cli: add --detached mode 2017-06-20 11:56:49 -04:00
Gleb Bahmutov 82e8fe395c cli: run Cypress app in attached mode, close #147 2017-06-20 11:33:39 -04:00
Gleb Bahmutov 7ff2c8a840 Merge branch 'issue-151' 2017-06-20 10:23:54 -04:00
Gleb Bahmutov 61c61cd76e cli: use same path to report error in spawn, close #151 2017-06-20 10:23:22 -04:00
Brian Mann c00ae640bd Merge pull request #171 from cypress-io/issue-167
cli: make version mismatch when verifying a warning, close #167
2017-06-20 10:16:50 -04:00
Chris Breiding e27c5883a3 Merge branch 'master' into 0.20.0-desktop-gui-changes 2017-06-20 10:05:44 -04:00
Gleb Bahmutov ca073d59ce cli: make version mismatch when verifying a warning, close #167 2017-06-20 09:21:36 -04:00
Gleb Bahmutov 996bf560fa cli: report relative path from inside the node_modules 2017-06-19 18:20:06 -04:00
Gleb Bahmutov 5767175dae cli: fix typo in download not found code path, close #166 2017-06-19 17:37:40 -04:00
Chris Breiding a4ae7a8f75 Merge branch 'master' into 0.20.0-desktop-gui-changes 2017-06-19 14:18:19 -04:00
Gleb Bahmutov b331cb54f0 Issue 156 cli node 0.12 (#158)
* cli: set engines node > 0.12

* cli: trying to transpile using babel-register on the fly

* downgrading fs-extras to 1.0.0 to let it work on Node 0.12

* lint and enforce single quote on strings

* remove individual plugins

* cli: include dist folder in the npm package

* cli: add build step on prepublish, add readme

* cli: use default options, because code is transpiled

* cli: output into es5

* cli: see published size, a few missing requires

* cli: replace const with var in node 0.12

* cli: cache node_modules on CircleCI

* cli: back to use const that is not changed to let by eslint

* cli: build separate package for npm publishing

* remove postinstall step

* cli: remove npm vs dev install check
2017-06-19 12:14:06 -04:00
Chris Breiding 33aa07a7a1 Merge branch 'master' into 0.20.0-desktop-gui-changes 2017-06-15 10:27:02 -04:00
Chris Breiding 105479c78e cli/server: use run-project instead of run and fix specs 2017-06-14 14:18:19 -04:00
Gleb Bahmutov 0cd395d5df cli: check dependencies before testing, close #156 (#160)
* cli: check dependencies before testing, close #156

* add missing dependency

* cli: move ramda from dev dependencies to prod

* print cli bin

* cli: use the right tool name
2017-06-14 11:43:13 +02:00
Loren Norman f947e0c55d Merge remote-tracking branch 'origin/master'
# Conflicts:
#	docs/source/guides/getting-started/installing-cypress.md
2017-06-13 15:49:54 -04:00
Chris Breiding e333e6d82e server: use —run to signal headless instead of —project 2017-06-13 13:52:31 -04:00
Gleb Bahmutov 8e1776c870 Issue 146: uniform CLI error reporting (#149)
* cli: shorter install message without undefined for #146

* cli: show relative path after install

* cli: debug install process

* cli: print message if using CYPRESS_VERSION

* cli: tests for CYPRESS_VERSION install

* cli: needed version message

* cli: verify app after download on install

* cli: do not verify app on install, wait until it runs

* cli: add verify command

* cli: good messags for missing app binary

* cli: xvfb error

* add missing app error

* linting

* cli: errors reported using same function

* print stack in error message for some errors

* show path checked

* use same error mechanism for download errors

* cli: unzip should report error the same way as the rest of CLI

* update some error language

* consolidate urls in error messages

* show terminal info

* terminal check outside of code

* cli: detect CI, do not use progress bar

* cli: test mock bar

* remove context.only
2017-06-09 17:37:48 -04:00
Brian Mann dc9b835a58 cli: enable returning node module interface
-have binary call directly into the CLI
2017-06-05 18:31:44 -04:00
Brian Mann 0867e4f971 cli: remove deprecated circle.yml 2017-06-05 18:31:04 -04:00
Brian Mann 2562f56c72 cli: install the cypress binary into top level 'dist' 2017-06-05 18:06:20 -04:00
Brian Mann 101aac9c9b cli: move cli into subfolder, refactor cli scripts
-cleanup root monorepo files
-prevent downloading cypress binary when in development
-remove app-module-path
2017-06-05 17:26:51 -04:00