Unitary is a frontend to PHPUnit built using Adobe Flex/AIR. It runs on Windows and OS X, and is designed to provide a one-stop environment for executing unit-test runs without having to install any additional software.
Unitary comes with everything needed to run PHPUnit; on Windows, it even comes with its own built-in copy of PHP (don't worry, it won't interfere with any other copy of PHP you may have on your machine).
Unitary has a few tricks up its sleeve:
- Runs any PHPUnit-powered test suite
- Keeps a running log of all your test runs, including code coverage
- Visualizes successful and unsuccessful test
- Visualizes your test suite's code coverage
In addition, since Unitary is free and open-source software, you can take advantage of the source code, which provides a few additional items:
- A library that can run PHPUnit against a test suite and collect all the output
- A library that interprets and stores the logs produced by PHPUnit
- Download and install Unitary
- Launch Unitary
- Add a project
- Run tests!
Yes—it's meant to be that simple. As long as your tests run properly, Unitary should work without any further configuration or installation steps.
Creating a project is a fairly easy process:
- Specify a name for the project
- Specify the location of your test suite's entry point
- Provide any additional parameters; these are passed directly to the PHP executable when running your suite
Unitary is free and open-source software, released under a BSD-style license. You are free to clone the source and do with it whatever you like, so long as you abide by the various licenses.
We are happy to take your suggestions, pull requests, and any other ideas. After all, software is only useful when it's used!
The project is currently still under development and should be considered “alpha quality.” It runs fairly well, but still has a few quirks and requires some more work. Of course, you're welcome to help us stomp those bugs by contributing a patch!