wp2static/integration-tests
2022-08-16 19:33:19 -05:00
..
clj/wp2static_test Add clojure tooling dirs to .gitignore 2022-08-16 18:42:48 -05:00
mariadb Move integration tests into a subfolder 2021-10-21 19:18:30 -05:00
nginx Move integration tests into a subfolder 2021-10-21 19:18:30 -05:00
php Report more PHP errors 2021-11-04 20:40:49 -05:00
test/wp2static_test Add tests for basic auth 2022-03-19 09:07:06 -07:00
.dir-locals.el Add .dir-locals.el to set env vars for emacs 2021-11-27 17:54:39 -06:00
.envrc Add .envrc for integration-tests 2022-03-19 06:44:26 -07:00
bedrock.env Add Bedrock to integration tests 2021-11-20 22:52:29 -06:00
bedrock.sh Add Bedrock to integration tests 2021-11-20 22:52:29 -06:00
default.nix Upgrade test deps 2022-08-16 19:33:19 -05:00
deps.edn Upgrade test deps 2022-08-16 19:33:19 -05:00
htpasswd Add tests for basic auth 2022-03-19 09:07:06 -07:00
mariadb.sh Fix linting issues with integration-tests 2021-10-21 20:17:38 -05:00
nginx.conf Add tests for basic auth 2022-03-19 09:07:06 -07:00
README.md Add tests for basic auth 2022-03-19 09:07:06 -07:00
run-dev-server.sh Add a WP2STATIC_SYMLINK env var and use in run-dev-server.sh 2021-10-26 18:32:13 -05:00
shell.nix Use niv to pin nix commits 2022-08-16 19:10:16 -05:00
test-matrix.sh Upgrade test deps 2022-08-16 19:33:19 -05:00
wordpress.sh Work around wp plugin uninstall not doing its job 2021-10-26 18:11:53 -05:00
wp-config.php Add tests for basic auth 2022-03-19 09:07:06 -07:00

WP2Static Integration Tests

Tests for WP2Static's behavior with a real web server and database.

Installation

You will need to set up Nix and direnv. Then restart your shell and run direnv allow from this directory. Nix will install the dependencies.

Optional:

  • nix-direnv is much faster than the default, but it takes a little extra setup.
  • envrc.el provides fast direnv integration for emacs.

Usage

nix-shell --run "clojure -X:test"

Test system

  • NGINX on localhost:7000, 7001, and 7002
  • MariaDB on mariadb/data/mysql.sock
  • PHP-FPM on php/fpm.sock
  • WordPress at localhost:7000
  • Bedrock at localhost:7001
  • WordPress with basic auth at localhost:7002