Skip to content

Releases: dingo-d/wp-pest

2.0.0-alpha

20 Sep 09:05
Compare
Choose a tag to compare
2.0.0-alpha Pre-release
Pre-release

This is an alpha release of v2 for wp-pest lib.

The library uses Pest v2 and all the dependencies that will allow us to use it.

This means the minimum required PHP version has been increased to PHP 8.1, and the lib depends on an untested branch of wp-test-utils.

In order to install it locally you'll need to add: "minimum-stability": "dev", to your composer.json file

Testing is welcomed.

Add PHP 8.2 test matrix

16 Dec 17:21
5eec227
Compare
Choose a tag to compare

Added

  • PHP 8.2 to the test matrix to ensure nothing is failing on PHP 8.2

Update integration tests and package name

16 Dec 16:38
78dc8ce
Compare
Choose a tag to compare

Changed

  • Fix the integration test base class
    • Previously, both unit and integration tests used the same base test class. While this worked, integration tests weren't using the polyfilled WP_UnitTestCase case from the wp-test-utils package.

      This, in turn, meant that the tests weren't properly cleaned up, and that some usefull features, like WordPress test factories couldn't be used easily in the integration tests.

      The caveat is that, because of how Pest works, we cannot just define the uses statement in the Pest.php file, because the WordPress unit test class becomes available after the bootstrap process. For more details see the issue pestphp/pest#623.

  • Change the name of the package to dingo-d/wp-pest

None of this is a BC break, as your tests will work. This jsut makes it work a bit better.

v 1.5.0

30 Nov 13:51
e05d732
Compare
Choose a tag to compare

Added

  • Add a force parameter to force download WordPress files
  • Add additional tests
    • Some tests are skipped because they cannot be run in isolation, or the underlying component does type casting.

Fixed

  • Fix the issue with WP core not being included in the development version
    • By default, the wordpress-develop git repo doesn't contain all the WP Core files,
      so now we have to download development files for tests and the core separately.
  • Remove unnecessary error checks

Updated

  • Stubs are updated to mimic WP 6.1.1 version

Fix slug not

04 Jul 07:44
81a52f1
Compare
Choose a tag to compare

Fixes

  • Slug validation was poor, this release fixes it, and fixes #15

Update command for CI/CD runs

11 Jun 17:33
95ef322
Compare
Choose a tag to compare

Added

  • Add an option to avoid the prompt at the end of the setup command
    • This caused issue in CI/CD pipelines where the setup command would just hang without confirmation.

Fix version checks

31 May 17:33
a025d6a
Compare
Choose a tag to compare

Fixed

  • Fixed the #10 issue - tags not correctly fetched from the API

Changed

  • Updated the method for getting tags, and verifying against the correct one

Fix argument check in bootstrap

18 May 10:47
9d1b344
Compare
Choose a tag to compare

Changed

  • Fixed the --group=integration check in the bootstrap
    • Before it depended on the position of the argument, so in PhpStorm running tests
      failed because the argument wasn't in the second place.

Update base test case

15 May 16:09
e67aa54
Compare
Choose a tag to compare

Changed

  • Add Yoast's TestCase as the base test case to both unit and integration tests in Pest.php

Initial release

10 May 11:20
c81aef5
Compare
Choose a tag to compare

Initial release