Commit Graph

148 Commits

Author SHA1 Message Date
Christopher Allford 3275c5abd1 Fixed broken code coverage 2020-11-12 14:46:39 -08:00
Christopher Allford a95b384f08 Corrected code coverage path 2020-11-12 14:30:55 -08:00
Christopher Allford 05ebdf9677 Adjusted Travis' PHPUnit to use the vendor binary instead of a global install 2020-11-11 23:42:14 -08:00
Rodrigo Primo 17471f8f66 Stop installing PHPCS globally in the Travis build job
PHPCS is already installed as a project dependency (we run `composer
install` for each build job) so there is no need to install it as a
global package in `tests/bin/phpcs.sh`.
2020-10-16 16:37:05 -03:00
Rodrigo Primo eaef2409bd Use phpcs installed locally instead of globally
This is an attempt to fix the PHPCS Travis build job that started
failing with the following error:

```
Running Code Sniffer.
tests/bin/phpcs.sh: line 14: phpcs: command not found
The command "bash tests/bin/phpcs.sh" exited with 127.
```

(https://travis-ci.org/github/woocommerce/woocommerce/jobs/736440739#L508)
2020-10-16 16:36:57 -03:00
Claudio Sanches e0f08cc65a Use global phpcs 2020-09-08 16:53:13 -03:00
Claudio Sanches f748a71a8e Install globally 2020-09-08 15:56:06 -03:00
Claudio Sanches aa57d2f676 Update sniffs installation 2020-09-08 15:11:42 -03:00
Claudio Sanches 521ad8c3ff Update all dependencies of woocommerce-sniffs 2020-08-11 20:42:42 -03:00
Claudio Sanches 7fdf209713 Check if PHPCS is installed before trying to install a new copy 2020-08-11 20:08:28 -03:00
Claudio Sanches 3fd42a0fd5 Fixed packages required to run code sniffer on unit tests 2020-08-07 13:28:41 -03:00
Ron Rennick 78e777f25f restore travis e2e setup script 2020-05-01 10:18:21 -03:00
Ron Rennick 6726f6423d merge travis config files 2020-04-30 19:58:37 -03:00
Jeff Stieler 17d3771273 Remove defunct E2E test runner script, add docker scripts to package file. 2020-04-15 11:17:48 -06:00
Ron Rennick 812e500224 update test configuration to use e2e-env 2020-04-14 12:06:26 -06:00
Ron Rennick 3d63ad48a3 Tweak configuration
- set executable on initialize.sh
- use pagename query string for ready page
- use environment vars for docker config
2020-04-14 12:06:25 -06:00
Christopher Allford 5f829d4005 Corrected the handling of sockets in the unit test install script 2020-03-13 20:44:38 -07:00
Brent Sessions 256d6f7808 Use new puppeteer-utils package. 2020-02-18 13:31:35 -05:00
Rodrigo Primo 48480eb882 Fix unit tests when running using WP nightly
The WooCommerce unit tests started failing when running using WP nightly
with the following error:

```
Fatal error: require_once(): Failed opening required '/tmp/wordpress-tests-lib/src//wp-includes/class-phpmailer.php' (include_path='.:/home/travis/.phpenv/versions/7.4.2/share/pear') in /tmp/wordpress-tests-lib/includes/mock-mailer.php on line 2
```

https://travis-ci.org/woocommerce/woocommerce/jobs/646855363#L1955

This was happening because WP changed the syntax of the line where
ABSPATH is defined in the context of the unit tests
(https://core.trac.wordpress.org/changeset/47198/trunk/wp-tests-config-sample.php)
and we rely on this syntax to change ABSPATH when running
`tests/bin/install.sh`.

To fix this problem, this commit updates the sed command used to change
ABSPATH to work when both the old and new syntaxes are used. In the
future we might want to consider a more robust solution to the problem
of updating ABSPATH.
2020-02-06 12:43:47 -03:00
Julia Amosova 0a5c866bc4 Remove taking screenshots sent to AWS on failed tests 2020-01-24 17:17:52 +00:00
Julia Amosova d4c8719d1f Remove the process of building legacy e2e test site 2020-01-24 17:05:18 +00:00
Julia Amosova 8854d0d074 Update comments in `run-e2e-CI.sh` 2019-12-20 00:10:44 +00:00
Julia Amosova 9397565d22 Add max amount of time waiting for the Docker container to be built 2019-12-19 22:48:03 +00:00
Julia Amosova f9a9fbc2c7 Pass jest exit code to npm 2019-12-15 22:34:35 +00:00
Julia Amosova 88fa2885fc Update jest version 2019-12-15 19:13:28 +00:00
Julia Amosova 4e134f8ec4 Testing Docker build on Travis 2019-12-15 17:54:33 +00:00
Julia Amosova c1b358929b Add page creation & check for Docker container status to run e2e tests 2019-12-15 16:44:40 +00:00
Julia Amosova 5645f5882a Add check for Docker container to be built on Travis when post is created 2019-12-15 16:04:06 +00:00
Julia Amosova 14afe36204 Add check for Docker container to be built on Travis 2019-12-15 15:32:26 +00:00
Julia Amosova 53dcdd77b3 Update Docker + Travis setup 2019-12-15 13:09:29 +00:00
Julia Amosova defbcc456e Adjust `npm install` in travis / docker setup 2019-12-03 22:21:41 +00:00
Julia Amosova 51fcf56ecb Increase wait time for the docker container to start 2019-12-03 21:00:46 +00:00
Julia Amosova 9e4f55a82f More tweaks to Travis / Docker setup 2019-12-03 20:34:40 +00:00
Julia Amosova d04d862c95 Add npm install to Travis / Docker setup 2019-12-03 19:56:03 +00:00
Julia Amosova 4c8c4a8dbf Adjust Travis + Docker setup 2019-12-03 18:43:33 +00:00
Julia Amosova 7b7473f917 Add `npm install` to the Travis implementation for running e2e tests 2019-11-27 00:25:11 +00:00
Julia Amosova a7e582b1bb Update docker-compose file & setup running e2e tests on Travis CI 2019-11-26 20:34:00 +00:00
Julia Amosova 11a8cbdf79 Merge branch 'master' into new/puppeteer-screenshot-tester 2019-10-18 00:16:22 +01:00
Julia Amosova 560f64d212 Remove Selenium e2e tests & add Puppeteer new product e2e test 2019-08-27 13:22:24 +01:00
Julia Amosova b3b3b15f6d Add development mode for running e2e tests 2019-08-23 18:02:13 +01:00
Julia Amosova 337b134c10 Implement Puppeteer architecture & add basic test 2019-08-23 11:34:07 +01:00
Gerhard 862c43c553 xvfb needs to be started in before_script 2019-08-05 14:43:54 +02:00
Gerhard a6eda46b97 npm run 2019-07-25 15:55:33 +02:00
Gerhard e8dff32c88 Use correct variable to trigger visual regression test 2019-07-25 15:28:07 +02:00
Gerhard af39fb7e5f Hook up new run-vis-regression.sh script, do not run unit tests on vis regression tests 2019-07-25 13:12:24 +02:00
Gerhard 5db83f1699 First go at setting up travis to run vis regression tests. 2019-07-24 13:20:41 +02:00
Claudio Sanches 80f1e2fba2 Remove all support for PHP 5.2 in Travis 2019-07-18 23:01:14 -03:00
Gerhard 0e50e2319c Cleaning up 2019-07-14 17:16:31 +02:00
Gerhard 712969981c Remove extra folder 2019-07-14 17:04:59 +02:00
Gerhard 689d66dae3 npm install, debugging info 2019-07-14 17:01:38 +02:00