Skip to content

Add new @skip-object-cache Behat tag#324

Merged
swissspidy merged 1 commit intomainfrom
add/skip-object-cache
Mar 24, 2026
Merged

Add new @skip-object-cache Behat tag#324
swissspidy merged 1 commit intomainfrom
add/skip-object-cache

Conversation

@swissspidy
Copy link
Member

No description provided.

@swissspidy swissspidy requested a review from a team as a code owner March 24, 2026 21:43
Copilot AI review requested due to automatic review settings March 24, 2026 21:43
@github-actions

This comment was marked as resolved.

@gemini-code-assist

This comment was marked as resolved.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new Behat tag, @skip-object-cache, to explicitly mark tests that should be skipped when the WP_CLI_TEST_OBJECT_CACHE environment variable is set to 'sqlite'. This change is consistently applied across multiple test methods in tests/tests/TestBehatTags.php and in the utils/behat-tags.php utility script. There is no feedback to provide.

@codecov
Copy link

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the Behat tag filtering script to support skipping scenarios when a persistent object cache is enabled (currently via the SQLite object cache backend), and updates the PHPUnit expectations accordingly.

Changes:

  • Add @skip-object-cache to the generated skip tag list when WP_CLI_TEST_OBJECT_CACHE=sqlite.
  • Update TestBehatTags expectations to include ~@skip-object-cache in object-cache-enabled environments.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
utils/behat-tags.php Adds conditional skip tag generation for @skip-object-cache when SQLite object cache is enabled.
tests/tests/TestBehatTags.php Updates multiple assertions to match the new tag filtering behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@swissspidy swissspidy merged commit 1883ea9 into main Mar 24, 2026
83 checks passed
@swissspidy swissspidy deleted the add/skip-object-cache branch March 24, 2026 22:04
@swissspidy swissspidy added this to the 5.1.5 milestone Mar 24, 2026
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