wp2static/integration-tests
2021-11-06 17:20:29 -05:00
..
clj/wp2static_test Add test/sh! and test/wp-cli! which check stderr 2021-11-04 22:26:44 -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 wp2static_option_* filters. Apply filters in CoreOptions::get* 2021-11-06 17:20:29 -05:00
default.nix Add a matrix GH Actions strategy and a test-matrix script 2021-10-25 19:27:52 -05:00
deps.edn Add run-dev-server.sh script 2021-10-26 18:24:26 -05:00
mariadb.sh Fix linting issues with integration-tests 2021-10-21 20:17:38 -05:00
nginx.conf Move integration tests into a subfolder 2021-10-21 19:18:30 -05:00
README.md Make .. the default WP2Static directory and update README 2021-10-21 20:31:56 -05: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 Move integration tests into a subfolder 2021-10-21 19:18:30 -05:00
test-matrix.sh Remove --pure from test-matrix.sh because we want to pass env vars 2021-10-26 18:32:18 -05:00
wordpress.sh Work around wp plugin uninstall not doing its job 2021-10-26 18:11:53 -05:00
wp-config.php Fix wp-config issue on PHP 8.0 by using isset before checking value 2021-11-04 22:22:33 -05: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
  • MariaDB on mariadb/data/mysql.sock
  • PHP-FPM on php/fpm.sock
  • WordPress