parf/spartan-test

PHP 8 Unit and Web Testing Utility

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 3

Forks: 0

Open Issues: 0

Type:project

3.3.2 2024-10-07 22:23 UTC

This package is auto-updated.

Last update: 2024-11-07 22:39:29 UTC


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

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
  • stest provides testing framework
  • stest-all runs all or specific tests in parallel (gnu-parallel utility required)