jilo-web/tests
Yasen Pramatarov c2f63f6121 Adds security headers and CSRF protection tests 2025-02-19 11:08:42 +02:00
..
framework Adds security headers and CSRF protection tests 2025-02-19 11:08:42 +02:00
README.md Adds initial unit tests 2025-02-18 16:36:31 +02:00

README.md

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/
├── framework/           # Test framework files
│   ├── composer.json   # Composer configuration for tests
│   ├── phpunit.xml     # PHPUnit configuration
│   ├── Unit/          # Unit tests
│   ├── Integration/   # Integration tests
│   └── TestCase.php   # Base test case class
└── README.md          # This file

Running Tests

  1. Change to the framework directory:
cd tests/framework
  1. Install dependencies (first time only):
composer install
  1. Run all tests:
composer test
  1. Generate coverage report:
composer test-coverage

The coverage report will be generated in tests/framework/coverage/.