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

Add PhpStan rule to ensure all tests are executed #56

Merged
merged 2 commits into from
Nov 22, 2021

Conversation

PetrHeinz
Copy link
Contributor

Attempt to ensure that all test methods are executed (we had some issues in the past with non-executed tests because of silly mistakes).

All methods that are named test* must:

  • be public
  • be in a class named *Test
  • be in a subclass of \PHPUnit\Framework\TestCase

Coming from our retrospective https://github.com/BrandEmbassy/retro/issues/422#issuecomment-973930353

@PetrHeinz PetrHeinz enabled auto-merge (squash) November 19, 2021 13:26
@PetrHeinz
Copy link
Contributor Author

CI / phpunit (update --prefer-lowest, 8.1) (pull_request) fails because of phpstan/phpstan#5263

@PetrHeinz PetrHeinz merged commit 6170590 into master Nov 22, 2021
@PetrHeinz PetrHeinz deleted the phpstan-rule-for-tests branch November 22, 2021 10:26
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.

None yet

3 participants