Empty Code Coverage Report after Running Unit Tests In NetBeans

NetBeans has a nice code coverage-feature, but I experienced the problem that one machine I could get code coverage reports, but not on another machine. The configuration of both machines was the same: same Windows-version (Windows 7), same PHP-version (5.4.0), had the same version of XDebug (a requirement for having code coverage). I checked and… Continue reading Empty Code Coverage Report after Running Unit Tests In NetBeans

PHPunit testing and code coverage via the command line–different notes

Test execution via the command line: “c:\Program Files (x86)\PHP\v5.4\phpunit.bat” -v [FolderToTest/FileToTest] Create a Code Coverage report via the command line: “c:\Program Files (x86)\PHP\v5.4\phpunit.bat” –coverage-html [ResultsFolder] -v [FolderToTest/FileToTest] Naming of unit tests: When you want to execute tests on a folder PHPUnit exexutes only the files inside which end on Test.php,e.g. ProjectTest.php. They are not executed… Continue reading PHPunit testing and code coverage via the command line–different notes

Working unit tests don’t give Code Coverage results in Netbeans

Recently I was faced with the fact that my PHPUnit test were not longer giving me Code Coverage results in Netbeans, however when I ran each test file individually all tests worked (and were passing). Phenomena: in the test results window Netbeans reported “no tests executed” and asked me to verify the output-window. In the… Continue reading Working unit tests don’t give Code Coverage results in Netbeans