core.blade.php 1.2 KB

1234567891011121314151617
  1. @php
  2. /** @var \Laravel\Boost\Install\GuidelineAssist $assist */
  3. @endphp
  4. # PHPUnit
  5. - This application uses PHPUnit for testing. All tests must be written as PHPUnit classes. Use `{{ $assist->artisanCommand('make:test --phpunit {name}') }}` to create a new test.
  6. - If you see a test using "Pest", convert it to PHPUnit.
  7. - Every time a test has been updated, run that singular test.
  8. - 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.
  9. - Tests should cover all happy paths, failure paths, and edge cases.
  10. - 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.
  11. ## Running Tests
  12. - Run the minimal number of tests, using an appropriate filter, before finalizing.
  13. - To run all tests: `{{ $assist->artisanCommand('test --compact') }}`.
  14. - To run all tests in a file: `{{ $assist->artisanCommand('test --compact tests/Feature/ExampleTest.php') }}`.
  15. - To filter on a particular test name: `{{ $assist->artisanCommand('test --compact --filter=testName') }}` (recommended after making a change to a related file).