You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .ai/laravel/core.blade.php
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@
35
35
### Testing
36
36
- When creating models for tests, use the factories for the models. Check if the factory has custom states that can be used before manually setting up the model.
37
37
- Faker: Use methods such as `$this->faker->word()` or `fake()->randomDigit()`. Follow existing conventions whether to use `$this->faker` or `fake()`.
38
+
- When creating tests make use of `php artisan make:test [options] <name>` to create a Feature test, and pass `--unit` to create a Unit test.
38
39
39
40
### Vite Error
40
41
- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `npm run build` or ask the user to run `npm run dev` or `composer run dev`.
Copy file name to clipboardExpand all lines: .ai/pest/core.blade.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
- If you need to verify a feature is working, write or update a Unit / Feature test.
5
5
6
6
### Pest Tests
7
-
- All tests must be written using Pest.
7
+
- All tests must be written using Pest. Use `php artisan make:test --pest <name>`.
8
8
- 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.
9
9
- Tests should test all of the happy paths, failure paths, and weird paths.
10
10
- Tests live in the `tests/Feature` and `tests/Unit` directories.
Copy file name to clipboardExpand all lines: .ai/phpunit/core.blade.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## PHPUnit Core
2
2
3
-
- This application uses PHPUnit for testing. All tests must be written as PHPUnit classes.
3
+
- This application uses PHPUnit for testing. All tests must be written as PHPUnit classes. Use `php artisan make:test --phpunit <name>` to create a new test.
4
4
- If you see a test using "Pest", convert it to PHPUnit.
5
5
- Every time a test has been updated, run that singular test.
6
6
- When the tests relating to your feature are passing, ask the user if they would like to also run the entire test suite to make sure everything is still passing.
0 commit comments