Skip to content

Commit ef05e03

Browse files
committed
guidelines: phpunit: standardise
1 parent 1f449cd commit ef05e03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.ai/phpunit/core.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
## PHPUnit Core
22

3-
- We are using PHPUnit for testing - if you see an example using Pest as part of a prompt, convert it to PHPUnit.
3+
- We are using PHPUnit for testing. All tests must be written as PHPUnit classes.
4+
- If you see a test using "Pest", convert it to PHPUnit.
45
- Every time a test has been updated, run that singular test.
5-
- When the tests relating to your feature are passing, make sure to also run the entire test suite to make sure everything is still passing.
6-
- Tests should test all of the the unhappy paths, happy paths, and weird paths.
6+
- When the tests relating to your feature are passing, ask the user if they'd like to also run the entire test suite to make sure everything is still passing.
7+
- Tests should test all of the unhappy paths, happy paths, and weird paths.
78
- You must not remove any tests or test files from the tests directory without approval. These are not temporary or helper files, these are core to the application.
89

910

@@ -12,4 +13,3 @@
1213
- Run all tests: `php artisan test`.
1314
- Run all tests in a file: `php artisan test tests/Feature/ExampleTest.php`.
1415
- Filter on particular test name: `php artisan test --filter=testName` (recommended after making a change to a related file).
15-
- When the tests relating to your feature are passing, make sure to also run the entire test suite to make sure everything is still passing.

0 commit comments

Comments
 (0)