jilo-web/tests/README.md

46 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2025-02-18 14:36:31 +00:00
# Jilo Web Test Suite
This directory contains the test suite for the Jilo Web application. All testing-related files are isolated here to keep the main application clean.
## Structure
```
tests/
2025-02-20 08:41:14 +00:00
├── Unit/ # Unit tests (individual classes and methods)
├── Classes/
└── Helpers/
├── Feature/ # Feature (integration) tests (covering multiple components)
├── Midleware/
└── Security/
├── Functional/ # Functionl tests (real usage scenarios)
├── Utils/ # Custom test utilities and libraries
├── TestCase.php # Base test case class
├── composer.json # Composer configuration for tests
├── phpunit.xml # PHPUnit configuration
└── README.md # This file
2025-02-18 14:36:31 +00:00
```
## Running Tests
2025-02-20 08:41:14 +00:00
1. Change to the test framework directory:
2025-02-18 14:36:31 +00:00
```bash
2025-02-20 08:41:14 +00:00
cd tests
2025-02-18 14:36:31 +00:00
```
2. Install dependencies (first time only):
```bash
composer install
```
3. Run all tests:
```bash
composer test
```
4. Generate coverage report:
```bash
composer test-coverage
```
2025-02-20 08:41:14 +00:00
The coverage report will be generated in `tests/coverage/`.