Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Introduce Reminder When Filtering Using only #1021

Closed
wants to merge 2 commits into from

Conversation

devajmeireles
Copy link
Member

What:

  • Bug Fix
  • New Feature
  • Enhancements

Description:

This PR is intended to introduce a warning as a reminder when you are filtering tests using ->only(), because without something like this, we can filter the tests but forget to remove the ->only() filter.

CleanShot 2023-11-24 at 14 24 23

@devajmeireles devajmeireles marked this pull request as draft November 24, 2023 17:28
@devajmeireles devajmeireles marked this pull request as ready for review November 24, 2023 17:37
@devajmeireles devajmeireles changed the title [2.x] Introduce Warning _(reminder)_ When Filtering Using only [2.x] Introduce Reminder When Filtering Using only Nov 24, 2023
@@ -33,6 +33,8 @@ public function shutdown(): void
if (file_exists($lockFile)) {
unlink($lockFile);
}

echo 'The tests executed were tests filtered using <href=https://pestphp.com/docs/filtering-tests#content-only>only</>';
Copy link
Member

Choose a reason for hiding this comment

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

Can you inject the output, like other plugins are doing, and use the info stuff?

@nunomaduro nunomaduro marked this pull request as draft November 24, 2023 18:46
@nunomaduro nunomaduro deleted the introducing-warning-when-running-only branch November 27, 2023 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants