Skip to content

dev new env

Vladimir Sklyar edited this page Jan 19, 2022 · 7 revisions

Requirements

MVP

  • different tables ($wp_prefix) or different db for all types of tests
    • DB is better because wp-browser use sql dumps
  • a separate domain for e2e tests
  • an ability to run e2e tests from host OS (non-headless) --- it's not necessary because VNC is available in Selenium docker image
  • ability to run e2e tests inside docker (headless) --- it's not necessary because VNC is available in Selenium docker image
  • test type: e2e (acceptance)
  • make commands to rule them all
  • run all types of tests on the same codebase (including wp-core files)
  • test type: wp-core integration tests

Good to have

  • ability to run on CI pipelines like Github Actions
  • comfortable xdebug setup
  • ability to use the setup for the matrix: php 7.4-8.1, wp 5.7-5.9
  • don't corrupt uploads during any type of tests
Clone this wiki locally