mirror of
https://github.com/torrentpier/torrentpier
synced 2025-07-05 12:36:12 -07:00
* feat(tests): integrate Pest testing framework and set up initial test structure - Added Pest as a development dependency for enhanced testing capabilities. - Created a PHPUnit configuration file (`phpunit.xml`) for test suite management. - Established a base test case class (`TestCase.php`) for consistent test structure. - Implemented example tests in both feature and unit directories to demonstrate usage. - Introduced a custom Pest file (`Pest.php`) to extend functionality and define global helpers. This setup streamlines the testing process and provides a foundation for future test development. * feat(test): add comprehensive testing infrastructure with Pest PHP - Add complete Pest PHP testing suite with extensive helper functions - Implement unit tests for Database and DatabaseDebugger classes - Implement unit tests for CacheManager and DatastoreManager classes - Add comprehensive mock factories and test data generators - Add custom Pest expectations for TorrentPier-specific validation - Create detailed testing documentation with examples and best practices - Update main README.md and UPGRADE_GUIDE.md with testing sections - Update dependencies to support testing infrastructure - Remove example test file and replace with production-ready tests BREAKING CHANGE: None - all existing functionality maintained The testing infrastructure includes: - 25+ helper functions for test setup and mocking - Singleton pattern testing for all major components - Mock factories for Database, Cache, and external dependencies - Custom expectations: toBeValidDatabaseConfig, toHaveDebugInfo - Comprehensive documentation with real-world examples - Performance testing utilities and execution time assertions
18 lines
552 B
XML
18 lines
552 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
|
|
bootstrap="vendor/autoload.php"
|
|
colors="true"
|
|
>
|
|
<testsuites>
|
|
<testsuite name="Test Suite">
|
|
<directory suffix="Test.php">./tests</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
<source>
|
|
<include>
|
|
<directory>app</directory>
|
|
<directory>src</directory>
|
|
</include>
|
|
</source>
|
|
</phpunit>
|