Commit Graph

11 Commits

Author SHA1 Message Date
Chris Breiding
d1fe365eca Add cy.task() command (#1422)
* server: handle undefined values from plugins

* server: have plugins process inherit stdio

so console.logs and such from plugins file come through

* add cy.task()

* server: fix config spec

* driver: fix task spec

* server: change ‘task’ to ‘task:requested’

* server: have ‘task’ event take object literal instead of function

* server: document how to run individual integration and e2e tests

* fix cy.task specs

* server: fix task e2e spec

* ensure stack trace comes through for task error

* don’t show stack for ‘known’ user errors

* add types for cy.task

* @sandbox -> sinon

* add e2e spec for task returning undefined

* update readme re: e2e —spec

* timedout -> timedOut

* new Promise + setTimeout -> Promise.delay

* improve cy.task() error messages

* fix specs
2018-05-15 20:49:20 -04:00
Gleb Bahmutov
adb3d10abc only return stderr,stdout and code 2017-09-28 22:45:14 -04:00
Gleb Bahmutov
449537a7ea windows: solve shell exec problem
Cypress executes multiple exec commands in local and global mode correctly
2017-09-28 19:22:32 -07:00
Gleb Bahmutov
b2a3476dba sourcing shell profile 2017-09-28 16:01:38 -04:00
Gleb Bahmutov
13e935457a limit cy.exec properties to stdout,stderr,code 2017-09-28 14:17:13 -04:00
Gleb Bahmutov
12843163b7 only return stdout, stderr and code from exec 2017-09-28 14:10:06 -04:00
Gleb Bahmutov
8dc82cff88 update exec unit tests on linux 2017-09-28 12:52:52 -04:00
Gleb Bahmutov
3378b08cc7 cy.exec - use execa to make it cross-platform
update unit tests and separate any differences between windows and linux
2017-09-28 09:38:35 -07:00
Brian Mann
6f661b72f0 driver: fix cy.exec, use backend, not automation, added full e2e tests 2017-08-13 22:05:43 -04:00
Brian Mann
3dcf45623a fix $SHELL undefined in docker, use process.env.SHELL, fixes #102 2017-05-27 11:23:55 -04:00
Brian Mann
71f07c2512 server: rename packages/app -> packages/server 2017-05-09 13:51:45 -04:00