mirror of
https://github.com/adityachandelgit/BookLore.git
synced 2026-01-09 06:21:08 +08:00
Add instructions for running Angular frontend tests
This commit is contained in:
parent
f8d4090738
commit
e346b83860
@ -197,6 +197,24 @@ curl http://localhost:8080/actuator/health
|
||||
|
||||
Always run tests before submitting a pull request to ensure your changes don't break existing functionality.
|
||||
|
||||
### Frontend Tests (Angular + Vitest)
|
||||
|
||||
Booklore uses [Vitest](https://vitest.dev/) for fast, modern frontend testing in the Angular app.
|
||||
|
||||
```bash
|
||||
cd booklore-ui
|
||||
|
||||
# Run all frontend tests
|
||||
ng test
|
||||
|
||||
# Run tests with coverage report
|
||||
ng test --coverage
|
||||
```
|
||||
|
||||
- The coverage report will be generated in the `coverage/` directory.
|
||||
- You can open `coverage/index.html` in your browser to view detailed coverage metrics.
|
||||
- All new features and bug fixes should include relevant unit tests.
|
||||
|
||||
### Backend Tests
|
||||
|
||||
```bash
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user