svrunit / svrunit
SVRUnit allows you to configure tests that you can run against your server, Docker container or even plain Docker images.
Installs: 1 135
Dependents: 1
Suggesters: 0
Security: 0
Stars: 7
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.2
- ext-dom: *
- ext-simplexml: *
- symfony/console: *
- symfony/yaml: *
- twig/twig: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.18
- phpstan/phpstan: *
- phpunit/phpunit: ^8.5
README
Welcome to SVRUnit - Your Server Testing Framework!
Basic Concept
Sometimes it's hard to verify that your server or even Docker image has all mandatory dependencies and packages installed.
Or maybe you just want to verify that some files exist - or do not exist at all?!
SVRUnit allows you to configure tests that you can run against your server, Docker container or even plain Docker images.
Why not just testing all these different Xdebug versions of your Docker images!?
Installation
SVRUnit is based on PHP. So you need to have PHP installed.
PHAR File
SVRUnit is available as phar
file.
Just download the ZIP file, extract it and you are ready to go.
curl -O https://www.svrunit.com/downloads/svrunit.zip
unzip -o svrunit.zip
rm -f svrunit.zip
Composer
You can also use SVRUnit with Composer. Just install it with this script.
composer require svrunit/svrunit
You can then run it with this command
php vendor/bin/svrunit ...
Configuration
The whole configuration is done using a XML file. You can create different test suites with different settings and even share tests across all of your suites.
Every test suite has the information where it will be run. Either on your local machine, or in a Docker image that will be spawned automatically for you.
Assertions
Tests are based on YAML files. You can create 1 single file with all your tests, or different tests based on topics or anything else.
SVRUnit provides different assertion options, such as "File Exists", "File Contains" and way more. Configure it, assign the expected result and you're ready to go.
Start Tests
Once configured, you can easily start your test with this command:
php svrunit.phar test --configuration=./svrunit.xml
That's it for now! You can read more about all these different possibilities in your documentation.
Documentation
There's plenty of documentation available at https://docs.svrunit.com
Please use this as additional resources.