parf / spartan-test
PHP 8 Unit and Web Testing Utility
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 0
Open Issues: 0
Type:project
pkg:composer/parf/spartan-test
Requires
- php: >=8.0
README
Minimalistic PHP 7, PHP 8 Unit Testing Framework / Web Testing Framework
Write your tests in style:
- Very simple tests
- Run as an executable file
- Both unit and web testing
- PHP code, minimal learning curve
- Less cruft, more fun
-
Examples
- Basic test example
- (advanced) Custom comparison methods
- Web-tests
-
To see more help just run
stest --helporstest-all --help
Composer / Laravel Autoload Integration
Upon start spartan test includes bootstrap/autoload.php or vendor/autoload or init.php file from current or parent directories
You can specify your custom autoload file using "--init=$path_filename" option or via stest.config file
INSTALL (GIT)
mkdir -p ~/src ~/bin
git clone https://github.com/parf/spartan-test.git ~/src/spartan-test
ln -s ~/src/spartan-test/stest ~/bin
INSTALL (COMPOSER)
composer require parf/spartan-test
ln -s ./vendor/bin/stest ~/bin
ln -s ./vendor/bin/stest-all ~/bin
stestprovides testing frameworkstest-allruns all or specific tests in parallel (gnu-parallel utility required)