Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9208787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:41:32+00:00 2026-06-18T00:41:32+00:00

I am trying to get Netbeans code coverage checking feature working. I am working

  • 0

I am trying to get Netbeans code coverage checking feature working. I am working with PHP on a Windows XAMPP setup, and have setup PHPUnit which seems to work fine for running unit tests.

When I right-click my project and select “Code Coverage > Collect and Display Code Coverage”, it displays a little bar at the bottom that says “0%” and has options to run tests and get a report.

I run the tests and check the report, yet it remains at 0%. If I check the report it says “No data – have you run your code yet?” I’ve tried rerunning the tests but it still does this. I’ve also tried just running the project, and also “debugging” the project to no avail.

Recent information on the topic is hard to come by, but judging by the PHPUnit documentation there could be an issue with Xdebug (I’ve enabled it, but no idea if it is working properly as I’ve not used it from within Netbeans before). Some old sources say that there are two php.ini’s in Xampp (one for web, one for CLI), but I can’t find a second one (guessing this has since changed).

I’m sure I am probably missing something fairly basic like an Xdebug setting or something… any help?

Here’s the XDebug section from my php/php.ini file:

[XDebug]
zend_extension = "D:\xampp\php\ext\php_xdebug.dll"
;xdebug.profiler_append = 0
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 0
;xdebug.profiler_output_dir = "\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
;xdebug.trace_output_dir = "\xampp\tmp"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:41:33+00:00Added an answer on June 18, 2026 at 12:41 am

    Is probably caused by this: http://forums.netbeans.org/topic47374.html. Apparently PHPUnit cannot deal with starting on c:\ and testing something on D:.

    Therefore I run any tests I want coverage-reports on from the commandline using the –coverage-html /path/to/directory argument:

    phpunit --bootstrap bootstrap.php --configuration phpunit.xml --coverage-html ./report ./unit
    

    Where the last argument (./unit) means that this will test als tests in the unit/ subdirectory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When trying to update a subversion working copy from Netbeans, I get the following
I was trying to get my Netbeans to autocomplete with PHP , and I
So i am trying get 2 div-containers which both should contain centered text (Both
I'm trying to get a SIP servlet chat server working, together with the textclient
I am running java code using Netbeans IDE in Ubuntu 12.04. I am trying
I'm trying to communicate between my PC (Windows 7 using Netbeans and RXTX) with
I'm trying to get up to speed on HTML/CSS/PHP development and was wondering how
I'm trying to create a distributable module for Netbeans 7.1 which will contain a
I am just trying to get my head around SSL. I have set up
I'm using Netbeans, and trying to get a program Rational to run, so that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.