diff --git a/.wp-env.json b/.wp-env.json index 3e254f9..487e36d 100644 --- a/.wp-env.json +++ b/.wp-env.json @@ -6,7 +6,6 @@ "plugins": [] , "mappings": { "wp-content/mu-plugins/accessibility-checker-mu-plugin.php": "./.wp-env/mnt/mu-plugin.php", - ".htpasswd": "./.wp-env/cfg/htpasswd.txt", "./../../../mnt/": "./.wp-env/mnt/" }, "env": { @@ -17,6 +16,7 @@ "wp-content/plugins/accessibility-checker": "./../accessibility-checker/", "wp-content/plugins/accessibility-checker-pro": "./../accessibility-checker-pro/", "wp-content/plugins/accessibility-checker-audit-history": "./../accessibility-checker-audit-history/", + "wp-content/debug.log" : "./.wp-env/logs/debug.log", ".htaccess": "./.wp-env/cfg/htaccess.txt" } }, @@ -24,8 +24,8 @@ "port": 8889, "plugins": [], "mappings": { - "source": "./", "wp-content/plugins": "./.wp-env/plugins", + "wp-content/debug.log" : "./.wp-env/logs/debug.log", ".htaccess": "./.wp-env/cfg/htaccess.txt" } } diff --git a/.wp-env/scripts/init.sh b/.wp-env/scripts/init.sh index a5e956d..f6bde6f 100755 --- a/.wp-env/scripts/init.sh +++ b/.wp-env/scripts/init.sh @@ -20,6 +20,15 @@ npx wp-env run cli wp option update edacp_authorization_password password npx wp-env run tests-cli wp option update edacp_authorization_username admin npx wp-env run tests-cli wp option update edacp_authorization_password password +#configure debug settings for dev and tests instances +npx wp-env run cli wp config set WP_DEBUG true --raw +npx wp-env run cli wp config set WP_DEBUG_LOG true --raw +npx wp-env run cli wp config set WP_DEBUG_DISPLAY true --raw + +npx wp-env run tests-cli wp config set WP_DEBUG true --raw +npx wp-env run tests-cli wp config set WP_DEBUG_LOG true --raw +npx wp-env run tests-cli wp config set WP_DEBUG_DISPLAY true --raw + #activate AC plugins on dev npx wp-env run cli wp plugin activate accessibility-checker npx wp-env run cli wp plugin activate accessibility-checker-pro