You may not have the xdebug PHP extension enabled. When I run the tests without xdebug enabled on PHPUnit 4.8.26, I get this message:
Warning: The Xdebug extension is not loaded
No code coverage will be generated.
It looks like VVV comes with xdebug though, so it is probably enabled by default. But perhaps you disabled it somehow?
To check if xdebug is enabled you can run php --ri xdebug
. That should show you the xdebug settings, if the extension is currently enabled.
If the extension is enabled, then maybe you haven’t configured a whitelist
within your configuration file. Take a look at those docs if you haven’t already, as they outline the steps needed to generate code coverage data with PHPUnit.
Related Posts:
- Writing test cases for a WordPress Plugin that has translations
- How to initialize something in unit test before the init hook being called?
- Testing Plugin – Install plugin dependencies in testing enviroment
- When unit testing a plugin, does the plugin need to be in the wp-content/plugins directory of the WordPress tests install?
- Creating Unique Post URLs for A/B Testing… Is this even possible?
- Plugin Unit Test for Table and Option Creation
- Is there an A/B testing plugin that lets you vary the heading, featured image, and content in a WordPress post?
- What areas to Unit test while building a plugin?
- Can I check plugins and themes for PHP 5.6 ahead of global PHP server Update
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- Error when setting up phpunit tests with wp-cli scaffold
- Python with wordpress plugin
- How to retain table data in wordpress phpunit tests
- How to run subversion and staging environments when running WordPress
- How to split test a menu item
- Why is one phpunit test throwing an error on one class when all other classes are similar without error?
- Identifying where plugins are being used in your wordpress install
- Making sure updates didn’t break anything
- Limit Google Ads to particular blog posts
- What is a good way to test that plugin upgrades have completed properly?
- How to resolve status code: 410 from Pagespeed insights for the wordpress website
- How to test plugin development with Git Hub Actions (integration tests)?
- Edit a page/post DB data?
- how to update WordPress plugins from external website with nodejs?
- How can i store cache of wordpress a database request without plugins?
- this code is fiven by chat-gtp but nothing match even I key in the value of a cell. help!
- WP FULL CALENDAR (NO NEXT ARTICLES DISPLAY)? [closed]
- Play an animated character video on click of a button or radio button selection only
- How do i fix this error?
- Stop the user if login from the cookies
- How to filter plugin search results in wp-admin plugin search page
- Vanilla javascript in custom gutenberg block not working
- disabled plugin and now wordpress won’t load
- How do i display the number of images on the “post screen”
- How to provide page_template path in custom plugin using WordPress
- WordPress User Registration/ Sign Up -> Able to take Paid Certification Courses & keep track of Completed Certificates
- How can I disable a plugin in Health Check mode if there’s a critical error?
- Prevent primary navigational menu from expanding during page load (WordPress / Astra Theme)
- Change weird Wp File structure
- Oxygen plugin wordpress stuck in loading sequence forever when trying to edit a page [closed]
- Redux Framework slides field – How Can i add new placeholder Filed? [closed]
- Create CPT on Ajax Call
- Woocommerce business card flyer design [closed]
- plugin doesn’t retrieve data from database
- LiteSpeed cache image Optimization
- Automatically create WooCommerce products page by just uploading the images [closed]
- Issues with creating user profile for a subscriber, but with different profile page and functionalities
- Multiple plugins settings of same developer into ONE settings page linked together
- Set the Social Icon Size in footer
- Use custom Javascript for a custom Elementor Widget [closed]
- Can’t save formdata in DB
- Block Root REST API Route using custom &/or iThemes
- Cannot register a block in my Twig-based theme using Timber for WP
- Event Made Easy – Block registration to two or more events that have the same category
- How to set an exact search box in tablepress plug-in
- Wp private content show me files attachments into post
- How to use `$order->get_discount_total()`, avoiding defoult WC decimal rounding?
- How can I wordpress cache a database request with no existing plugin?
- Save Confirmation Page Title to WPForms Entry
- Problem on a wordpress website with a plugin [closed]
- Allow manage_options capability for specific user only for specific plugin?
- Private plugin updating – GitHub zip file changes the plugin directory (with release or branch name)
- I want to allow certain file types on dokan upload files
- How do I edit the action URL on a widget form from a plugin?
- How to create different woocommerce single_product.php pages for each product? [closed]
- WordPress custom block: Link saved in database not retrieved when editing post
- Request initiator chain contains old CDN
- How can I make a function work only for desktops and not for mobiles?
- Accessing Correct Database to Create REST API Endpoint
- remover item do carrinho na página de checkout
- How do I replace a logo image that’s hard-coded into a plugin’s logo.php file?
- additional fields based on the quantity of products selected
- Changing the “OT Process” Plugin’s Default Slug of /process/
- What’s the best way to update my WordPress theme to Elementor?
- Display Any Field fromAdmin Panel in Frontend via Shortcode?
- How to have certain products show for only certain users (Not roles)
- ShipHub for WordPress
- How can I make a function work differently for desktops and for mobiles?
- How to Order Posts by Taxonomy in Jetengine Plugin
- Detect if user is on the specific page in WordPress
- Display file contents within Plugin
- A multi-section WordPress store [closed]
- Why my widget is not visible in the WordPress theme Twenty Twenty-Three
- How to create specific wordpress Table
- Plugin that supports the purchase and installation of other plugins?
- WordPress 6.3 with datatables – cannot seem to pass json from php to javascript
- Admin can’t install plugins
- No Google Analytics code rendered in the header?
- stop resize button for wordpress media
- PHP – Unexpected character in input: ” (ASCII=20) state=0
- Conflicting plugins break site
- How can JavaScript code be added before the closing HTML body tag?
- Implementing onSplit/onMerge in dynamic Gutenberg Custom Blocks
- Mixed results with is_page() WordPress function, when using $this, or self
- add_action() not working for admin
- I have created a custom plugin. After activation it creating page but i am not getting how to add another php file at page content?
- How to disable pagination in WordPress’ API results?
- Is it a good idea to restrict the REST API
- WordPress Plugin translation not working EN To FR
- Redirect OLD/Path to NEWURL/Path