Skip to content

Commit

Permalink
Adds debug.log output
Browse files Browse the repository at this point in the history
  • Loading branch information
boonedev committed Jan 16, 2024
1 parent d041ce7 commit b767315
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -17,15 +16,16 @@
"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"
}
},
"tests": {
"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"
}
}
Expand Down
9 changes: 9 additions & 0 deletions .wp-env/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b767315

Please sign in to comment.