WordPress static site generator for security, performance and cost benefits https://wp2static.com
Find a file
2022-03-20 15:59:10 +11:00
.github re #828 skip ext reqs for CI unit tests 2022-03-20 15:33:24 +11:00
integration-tests Add tests for basic auth 2022-03-19 09:07:06 -07:00
src Fix #844 crawling with basic auth fails 2022-03-19 09:18:42 -07:00
tests re #828 skip ext reqs for CI unit tests 2022-03-20 15:33:24 +11:00
tools Use the more portable /usr/bin/env bash instead of /bin/bash 2021-10-21 20:21:24 -05:00
views Fix cache page warning when $namespaces is empty 2021-11-27 17:54:39 -06:00
.editorconfig Editorconfig 2021-09-22 17:40:01 -07:00
.envrc Add Nix files for reproducible builds 2021-10-21 20:20:53 -05:00
.gitignore Add Bedrock to integration tests 2021-11-20 22:52:29 -06:00
CHANGELOG.md Fix #844 crawling with basic auth fails 2022-03-19 09:18:42 -07:00
composer.json Upgrade development dependencies 2022-03-19 07:14:17 -07:00
composer.lock Drop PHP 7.3 support. Bump dependencies (#837) 2021-11-08 20:49:17 -06:00
CONTRIBUTING.md badges aren't a11y-friendly 2021-01-31 09:38:02 +10:00
default.nix Upgrade development dependencies 2022-03-19 07:14:17 -07:00
LICENSE mv sys requirements checks to main view 2018-12-03 22:34:43 +08:00
phpstan.neon Add fileExtensionsToIgnore advanced option 2021-11-06 12:12:01 -05:00
phpunit.xml inject AssetDownloader dependency;allow WP mocks;update tests 2019-06-05 20:03:30 +07:00
README.md add testing notes 2022-03-20 15:59:10 +11:00
uninstall.php mv dbDelta to activation area 2020-04-12 00:18:25 +09:30
wp2static.php Version 7.2.0-dev 2021-09-18 17:14:40 -05:00

WP2Static

A WordPress plugin for static site generation and deployment.

Installation options

Docs

Support Forum

Contributing

See CONTRIBUTING.md

Testing

WP2Static includes various types of code quality and functionality tests.

Tests are defined as Composer scripts within the composer.json file.

composer run-script test will run the main linting, static analysis and unit tests. It will not run code coverage by default. To run code coverage, use composer run-script coverage, this will require XDebug installed.

composer run-script test-integration will run end to end tests. This requires that you have the nix-shell command available from NixOS.

You can run individual test stages by specifying any of the defined scripts within composer.json with a command like composer run-script phpunit. You can pass arguments, such as to skip slow external request making phpunit tests, run composer run-script phpunit -- --exclude-group ExternalRequests.

Continuous Integration is provided by GitHub Actions, which run code quality, unit and end to end tests.