PHP JavaScript HTML Shell CSS
Latest commit b13b653 Jun 29, 2016 @localgod localgod committed on GitHub Merge pull request #158 from VisualPHPUnit/#150
#150 DBUnit composer package added as suggested dependencies.

README.md

Scrutinizer Code Quality Build Status Dependency Status Project Stats Minimum PHP Version codecov.io Version Eye PHPPackages Rank

VisualPHPUnit

VisualPHPUnit is a visual front-end for PHPUnit.

Version 3.0.0 is the latest and greatest but 2.3.2 is also working just fine.

Versions

Setup

  • Checkout or download VisualPHPUnit
  • Run composer.php to install php dependecies.
  • Run npm install
  • Run bower install
  • Run ./bin/vpu -c vpu.json -s to start VisualPHPUnit with the build-in php server.
  • Run ./bin/vpu -c vpu.json -t to stop VisualPHPUnit with the build-in php server.

You may browse localhost:8000 to access the test suites.

You can update ./vpu.json to add additional test suites.

You may run tests from the console like this ./bin/vpu -c vpu.json testfile.php. You may append -a to archive your test results.

Development

Frontend

The frontend is a single-page javascript application (SPA) based on Angularjs and Bootstrap. You will need Node.js, Npm, Grunt and Bower to build the frontend.

Backend

The backend is a REST application based on Silex. You will need Composer to install relevant dependencies.You need php >=5.6 to run VisualPHPUnit.

Running VPU in dev mode

Setup dependencies

git clone git@github.com:VisualPHPUnit/VisualPHPUnit.git
git checkout 3.x
php -r "readfile('https://getcomposer.org/installer');" | php
php composer.phar install
npm install
bower install

Start VPU in dev mode

You need two consoles for this setup, one for the frontend and one for the backend.

cd backend
php -S localhost:8001
cd ../app
grunt serve

Running VPU at the Command Line

VPU can be run at the command line, making it possible to automate the generation of test results via cron.

You may append --help for options

Usage

./bin/vpu

You may read more about VisualPHPUnit here or in the wiki.