Clone or download
Latest commit 1a3bf71 Mar 23, 2018
Permalink
Failed to load latest commit information.
app Version bump Jun 29, 2017
backend Merge pull request #167 from VisualPHPUnit/master Sep 7, 2016
bin #159 Laravel support Jul 13, 2016
src Updated bower dependecies and added better console output for vpu Jun 29, 2017
tests Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase Nov 8, 2017
.bowerrc Initial rewrite - basic skeleton ready Mar 28, 2016
.gitignore Fix build Mar 23, 2018
.jscsrc Initial rewrite - basic skeleton ready Mar 28, 2016
.jshintrc Initial rewrite - basic skeleton ready Mar 28, 2016
.scrutinizer.yml Enable scrutinizer May 30, 2015
.travis.yml Added sonar scan and some cleanup. Mar 23, 2018
CHANGELOG.md Update CHANGELOG.md Sep 22, 2017
Gruntfile.js Changes to build script Sep 8, 2016
LICENSE Start working on v2.0. Jun 8, 2012
Makefile Fix for build Mar 23, 2018
README.md Added sonar scan and some cleanup. Mar 23, 2018
bower.json Version bump Jun 29, 2017
composer.json Added sonar scan and some cleanup. Mar 23, 2018
composer.json.org Added sonar scan and some cleanup. Mar 23, 2018
gh-pages.sh Merge branch 'master' of git@github.com:VisualPHPUnit/VisualPHPUnit.git Oct 26, 2016
package-lock.json Fix build Mar 23, 2018
package.json Fix build Mar 23, 2018
phpcs.xml Added sonar scan and some cleanup. Mar 23, 2018
phpdox.xml Enabled phpdox and fixed some code smells Oct 25, 2016
phpunit.xml.dist Fix build errors Mar 28, 2016
pmd.xml Enabled phpdox and fixed some code smells Oct 25, 2016
sonar-project.properties Added sonar scan and some cleanup. Mar 23, 2018
vpu.json Added sonar scan and some cleanup. Mar 23, 2018

README.md

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

VisualPHPUnit

VisualPHPUnit is a visual front-end for PHPUnit.

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

VisualPHPUnit is not php 7 compatible at this time due to the way phpunit is utilized. Php 7 will be supported in the next major release.

Versions

Setup

On *nix

  • Checkout or download VisualPHPUnit
  • Run make tools setup build

On Windows

  • Checkout or download VisualPHPUnit
  • Run php -r "readfile('https://getcomposer.org/installer');" | php.
  • Run ./composer.phar install to install php dependencies
  • Run npm install to install node tools
  • Run mklink grunt .\node_modules\grunt-cli\bin\grunt
  • Run mklink bower .\node_modules\bower\bin\bower
  • Run bower install to install javascript dependencies
  • Run grunt build to build frontend

To run

  • 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. You may append --help for options

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

On *nix

  • Checkout or download VisualPHPUnit
  • Run make tools setup

On Windows

  • Checkout or download VisualPHPUnit
  • Run php -r "readfile('https://getcomposer.org/installer');" | php.
  • Run ./composer.phar install to install php dependencies
  • Run npm install to install node tools
  • Run bower install to install javascript dependencies

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

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