UI for PHPUnit support
By Tomas Mysik on Feb 02, 2009
I would like to continue writing about our PHPUnit support in NetBeans; today, let's have a look at our new addition - UI for test results.
First of all, please be sure that you have PHPUnit 3.3.0 or newer installed, otherwise you won't be able to use this new UI for test results (most features will be still available - Create PHPUnit test, Run/Debug file with results in Output window only).
Before we move on, let me thank Erno Mononen for his great job; Erno takes care about the common part of UI test runner for all the scripting languages in NetBeans (namely Ruby, Python, PHP). Visit his blog to get more information, you will see that some features are still missing in PHP, most of them because of lack of time, some of them are waiting for the upcoming release PHPUnit 3.4.0.
Now, let's move finally to the UI, let's test our PHP project:
When the results are ready, UI appears:
As you can see, if some of our tests failed, one can easily investigate problems via messages attached directly to failing tests or using Output window. All this information is available as a tooltip as well (applies for test suite as well as for each test case).
Similar UI is displayed when user tests just one file (via Run file action, shortcut SHIFT + F6).
One can use buttons on the left side to rerun tests , to show only failed or all tests or to navigate to the previous or next failed test .
The whole output of PHPUnit script is available in Output window and could be very useful if, for example, any error occurs.
That's all for today, thanks for reading and we hope you enjoy this great new feature of PHP support in NetBeans!