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

Make testing less verbose #43

Open
CrochetFeve0251 opened this issue Sep 4, 2024 · 0 comments
Open

Make testing less verbose #43

CrochetFeve0251 opened this issue Sep 4, 2024 · 0 comments

Comments

@CrochetFeve0251
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Today testing is really verbose, which ends up taking too much time and living a lot of room for mistakes.

Describe the solution you'd like
The goal of that issue is to try to find solutions to make testing easier and more efficient.

For the moment, there are the potential solutions identified:

  • Use phpunit-wp-hooks to make filter mocking easier.
  • Improve phpunit-wp-hooks to also reset global variables, options and transients.
  • Use generators to generate test data which automatically resets the local state on each test.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

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

No branches or pull requests

1 participant