Skip to content

Fix broken tests and workflows#128

Merged
GaryJones merged 3 commits into
developfrom
fix/tests
Mar 14, 2022
Merged

Fix broken tests and workflows#128
GaryJones merged 3 commits into
developfrom
fix/tests

Conversation

@GaryJones
Copy link
Copy Markdown
Collaborator

  • Make the testcase extend from the WP-Test-Utils testcase.
  • Rename the file containing the tests to PSR-4 (needed for PHPUNit 10 support)
  • Update assertions, including not using assertions that no longer exist.
  • Rename tests to use snake_case, so they read better with the Testdox format.
  • Update the bootstrap to work with WP Test Utils.
  • Add PHPUnit's cache file to .gitignore.
  • Update the composer test script.
  • Move integration test-related files into a new tests/Integrations directory, to allow for future unit tests as well.
  • Refresh PHPUnit config file for PHPUnit 9 and best practices.

Fixes #125.

Updates Integration tests and Linting workflows as well, to test against multiple PHP and WP versions.

- Make the testcase extend from the WP-Test-Utils testcase.
- Rename the file containing the tests to PSR-4 (needed for PHPUNit 10 support)
- Update assertions, including not using assertions that no longer exist.
- Rename tests to use snake_case, so they read better with the Testdox format.
- Update the bootstrap to work with WP Test Utils.
- Add PHPUnit's cache file to .gitignore.
- Update the composer test script.
- Move integration test-related files into a new tests/Integrations directory, to allow for future unit tests as well.
- Refresh PHPUnit config file for PHPUnit 9 and best practices.
- Test multiple PHP versions.
- Allows for not checking PHPUnit XML file for PHP 7.1, as that uses PHPUnit 7.5, which doesn’t support testdox and coverage elements.
@GaryJones GaryJones added the type: maintenance Routine maintenance and code quality improvements label Mar 14, 2022
@GaryJones GaryJones added this to the 0.6 milestone Mar 14, 2022
@GaryJones GaryJones self-assigned this Mar 14, 2022
@GaryJones GaryJones merged commit 6b37485 into develop Mar 14, 2022
@GaryJones GaryJones deleted the fix/tests branch March 14, 2022 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: maintenance Routine maintenance and code quality improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix tests dependencies

1 participant