This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267496 - nb-phpunit-coverage.xml is empty
Summary: nb-phpunit-coverage.xml is empty
Status: RESOLVED INVALID
Alias: None
Product: php
Classification: Unclassified
Component: PHPUnit (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-09 06:20 UTC by Karima_Rafes
Modified: 2016-08-09 12:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karima_Rafes 2016-08-09 06:20:24 UTC
Hello

I installed Netbeans 8.2 (on Fedora 24) and a web server with PHP7+XDebug .

The debugger works well with Netbeans but when I execute a test generated by Netbeans, I have this message :

>"/usr/bin/php" "/usr/local/bin/phpunit" "--colors" "--log-json" "/tmp/nb-phpunit-log.json" "--coverage-clover" "/tmp/nb-phpunit-coverage.xml" "/home/karima/netbeans-dev-201608060002/php/phpunit/NetBeansSuite.php" "--" "--run=/home/karima/git/App/tests/selenium"
>>PHP Fatal error:  Class 'WebDriverCapabilityType' not found in /home/karima/git/App/tests/selenium/htdocs/indexTest.php on line 22
>>PHPUnit 5.4.8 by Sebastian Bergmann and contributors.
>>Error:         No code coverage driver is available
>>Done.

nb-phpunit-coverage.xml is empty on the pc.
It's  a problem in Netbeans  ?

Thanks
Karima
Comment 1 Tomas Mysik 2016-08-09 11:50:48 UTC
(In reply to Karima_Rafes from comment #0)
> >>PHP Fatal error:  Class 'WebDriverCapabilityType' not found in /home/karima/git/App/tests/selenium/htdocs/indexTest.php on line 22
>
> >>Error:         No code coverage driver is available

The problem will be here ;) So, IMHO not related to NetBeans, it is your project setup (or environment?). BTW code coverage works for me without any problem in the dev version of NetBeans.

Thanks for reporting.

Product Version: NetBeans IDE Dev (Build 20160809-268945c428af)
Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13
System: Linux version 4.4.0-34-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 2 Karima_Rafes 2016-08-09 12:30:07 UTC
Good news.

I searched the coverage because Netbeans said me 100% succeeded. It's just a little bug in the interface ;)

So If I generate a test by Netbeans, I have to install before a thing to start the Netbeans's test for Selenium. 

Do you know a doc step by step to run the netbeans's test in a empty project with a netbeans without config ?

Thanks
Comment 3 Tomas Mysik 2016-08-09 12:42:31 UTC
Sorry, I do not know what you mean exactly. You can try to ask our mailing list users@php.netbeans.org [1], maybe you will get some help there.

Thanks.
[1] https://netbeans.org/projects/php/lists