Skip to content

Commit

Permalink
docs(readme): add instructions for tests
Browse files Browse the repository at this point in the history
Make instructions relevant and in accordance with the new env.testing
environment to make a difference between test dedicated db and default
one
  • Loading branch information
momcilovicluka committed Oct 27, 2024
1 parent a50f980 commit 3952ac2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ php artisan db:seed
```

### 7. Test the application! 🧪
Before running the tests, make sure to createa a db file dedicated to testing.

Failing to do so will force the tests to run on default database resulting in an ***empty database after testing***.

You can create a db file for testing like so(it's already linked in ***env.testing***):
```bash
touch database/testing.sqlite
```
To run all the tests use:
```bash
php artisan test
Expand Down

0 comments on commit 3952ac2

Please sign in to comment.