From 9c6528f2d24d35fc197b42aeed0c81db3fb48357 Mon Sep 17 00:00:00 2001 From: Max Lyuchin Date: Fri, 1 Apr 2022 17:37:30 +0300 Subject: [PATCH 1/4] Shields --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f5eb33f..8bc1e18 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # cypress-wp-utils +![WordPress latest](https://img.shields.io/badge/WordPress%20up%20to-6.0-blue) ![WordPress minimum](https://img.shields.io/badge/WordPress%20since-5.2-blue) ![Test PRs](https://github.com/10up/cypress-wp-utils/actions/workflows/cypress.yml/badge.svg) ![CodeQL](https://github.com/10up/cypress-wp-utils/actions/workflows/codeql-analysis.yml/badge.svg) + > Utilities library for WordPress E2E testing in the Cypress environment. ## Prerequisites From d5f1989bdaf3532fcfef5541f83196d3fd05ac4e Mon Sep 17 00:00:00 2001 From: Max Lyuchin Date: Fri, 1 Apr 2022 17:38:01 +0300 Subject: [PATCH 2/4] Link to setup --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8bc1e18..29973a4 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ## Prerequisites -This library requires Cypress. Use https://github.com/10up/cypress-wp-setup to set up Cypress automatically. +This library requires Cypress. Use [@10up/cypress-wp-setup](https://github.com/10up/cypress-wp-setup) to set up Cypress automatically. ## Installation From 9a9b7c7567cfb8194387217370a3211901a93937 Mon Sep 17 00:00:00 2001 From: Max Lyuchin Date: Fri, 1 Apr 2022 17:38:45 +0300 Subject: [PATCH 3/4] Run all cores docs --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 29973a4..c821de8 100644 --- a/README.md +++ b/README.md @@ -60,3 +60,26 @@ Loaded templates: _templates ```sh npm i -D path/to/the/library ``` + +### Test against every WordPress major release + +For every incoming pull request by default on GitHub Actions we automatically perform tests against: +- current minimum supported WordPress 5.2 +- WordPress [latest release](https://github.com/WordPress/WordPress/tags) +- current WordPress [future release](https://github.com/WordPress/WordPress/tree/master) + +To run tests locally against every WordPress major release since minimum support (5.2) to the latest nightly build (6.0-alpha) use this script: + +```sh +./run-all-cores.sh +``` + +It has optional parameter `-s` to specify only one test suite to run: + +```sh +./run-all-cores.sh -s tests/cypress/intergation/login.test.js +``` + +## Like what you see? + +[![Work with us](https://10up.com/uploads/2016/10/10up-Github-Banner.png)](http://10up.com/contact/) From b7bebbd2f9fb287aa7bef1c8c66626319d18733f Mon Sep 17 00:00:00 2001 From: Max Lyuchin Date: Thu, 14 Apr 2022 17:04:06 +0300 Subject: [PATCH 4/4] Comment on including Utility LLibrary in the Setup script --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c821de8..cae7996 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ## Prerequisites -This library requires Cypress. Use [@10up/cypress-wp-setup](https://github.com/10up/cypress-wp-setup) to set up Cypress automatically. +This library requires Cypress. Use [@10up/cypress-wp-setup](https://github.com/10up/cypress-wp-setup) to set up Cypress automatically, including this library. ## Installation