tigron / skeleton-test
Testing utilities for Skeleton
Installs: 14 744
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Requires
- php-webdriver/webdriver: ^1.1
- phpunit/phpunit: ^9.1.1
Suggests
- tigron/skeleton-file: >=0.3.0
This package is auto-updated.
Last update: 2024-11-08 10:37:31 UTC
README
Testing utilities for skeleton
Installation
Installation via composer:
composer require tigron/skeleton-test
Howto
// Set a path where tests are located in
\Skeleton\Test\Config::$test_path = /my_tests';
// For Selenium test, set the Selenium hub URL
\Skeleton\Test\Config::$selenium_hub = 'http://localhost:4444/wd/hub';
// For timings of the tests (start and stop time of every test)
\Skeleton\Test\Config::$start_timestamp_filename = sys_get_temp_dir() . '/skeleton-test-start-time.txt';
\Skeleton\Test\Config::$timings_filename = sys_get_temp_dir() . '/skeleton-test-timings.json';
// To run the tests
skeleton test:all
// To run a single test
skeleton test:run My_First_Test_Class
// To intensively (10x) run a single test
skeleton test:intense My_First_Test_Class
// To run a list of test
skeleton test:run My_First_Test_Class,My_Second_Test_Class
// To intensively (10x) run a list test
skeleton test:intense My_First_Test_Class,My_Second_Test_Class
// To use files in the tests (only if skeleton-file is available)
skeleton test:file add identifier /var/www/mysite/my_file.txt
skeleton test:file get identifier /var/www/mysite/target_file.txt
skeleton test:file delete identifier
skeleton test:file list