Skip to content

Conversation

@galbus
Copy link
Contributor

@galbus galbus commented Oct 17, 2025

This pull request introduces several improvements to the testing and configuration of the project. The main changes include raising the minimum PHP test coverage threshold, upgrading the Cypress testing framework, skipping some unstable Cypress tests, and adding comprehensive PHPUnit tests for three WordPress settings fields. These updates enhance code quality standards and test reliability, and provide better coverage for settings-related functionality.

Testing and Configuration Improvements

  • Raised the minimum required PHP test coverage from 55% to 70% in the Composer scripts, enforcing stricter code quality standards.
  • Upgraded the cypress dependency from version 15.1.0 to 15.4.0 in package.json to ensure compatibility and benefit from the latest fixes and features.

Test Suite Reliability

  • Temporarily skipped several unstable Cypress tests by changing it to it.skip in the following test files:

Expanded PHPUnit Coverage for Settings Fields

  • Added new PHPUnit test classes for three WordPress settings fields:
    • AutoPublishTest.php: Tests the auto-publish setting, including registration, rendering, default values, and boolean sanitization.
    • CallToActionTest.php: Tests the call-to-action setting for the player, covering registration, rendering, value handling, escaping, and special characters.
    • IncludeTitleTest.php: Tests the include-title setting, verifying registration, rendering, default values, and boolean sanitization.

@galbus galbus self-assigned this Oct 17, 2025
@linear
Copy link

linear bot commented Oct 17, 2025

@galbus galbus merged commit b9c0f3f into s-7155-plugin-v600 Oct 17, 2025
@galbus galbus deleted the s-7673-wordpress-increase-phpunit-test-coverage branch October 28, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants