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?
- What security concerns should I have when setting FS_METHOD to “direct” in wp-config?
- What’s the preferred method of writing AJAX-enabled plugins?
- Get Product id from order id in Woocommerce [closed]
- force enqueue script to be first in order of prominence
- Modifying a JS file with data from plugin settings
- Hook for image edit popup
- WooCommerce ‘all’ orders no longer being displayed – how may I debug/fix [closed]
- Multi domain, multi sites with different themes and content
- Change post permalink to external URL from custom field
- Understanding apply_filters
- Master menu item for multiple plugins?
- Simultaneously post in both WordPress.com and self hosted WordPress blog
- Multi-Environment Set up
- Upgrade Private Plugin without Deleting
- get values from contact form 7 wp plugin [closed]
- Use plugin multiple times
- Overwrite or Replace code in WP_Footer
- Create template “author” with a plugin
- Cron jobs not working in WordPress plugin in a VPS with VestCP control panel
- Executing my function once on a specific time
- Creating mySQL procedure with $wpdb
- WooCommerce: Building a page with user input which is used to query order status and external API and return a result
- Ultimate Member [closed]
- How to make a implement queue for scheduling tasks in WordPress?
- add custom filters to the event calendar plugin programatically to frontend [closed]
- After upgrade to php 7 plugin/them updates broke [closed]
- WordPress Integration with Google Groups
- Editable form for WordPress plugin options page
- wp-pagenavi getting 404 page not found
- remove add new post, if there is already one post
- Difference and examples of esc_attr__() and esc_attr_e()
- woocommerce with custom post type
- Create Table on Plugin Activation
- Multisite – maximum number of users with specific role
- Issue running db create table query from static method
- correct sql query
- SQL query, error
- Problem of encoding characters (apostrophes) in my posts publications
- Locked out of admin panel after installing HC Custom WP-Admin URL [closed]
- Restricting page access [closed]
- Use $variable from file1.php in file2.php (different file paths)
- Sanitizing file & directory form input
- What’s my optimal choice for remote access to my localhost sites?
- Custom CSS not being added by plugin
- How to display results from a data table with an encrypted user id?
- What causes wp_schedule_single_event to fire off?
- Activation flow of a plugin in a multisite environment
- Checkbox show / hide output result
- login form should redirect to register page for in 1st login next time it should redirected to home page
- Plugin which unlock free gift when you reach some amount in cart
- CSS error in Simple CSS plugin [duplicate]
- How can I create a secure file download in WordPress?
- how to convert frontpage.php to dynamic page?
- Using Filters to modify contect – DB query results alwats appear fist
- Site navigation from Google not using HTTPS for some resources, causing redirect loop
- Object of class WP_Error could not be converted to string in /formatting.php
- multiple image upload using wp_enqueue_media
- Ajax call to php function doesn’t work PHP code
- On save_post need to wp_insert_post and save partent post id to child post and child post id to parent post
- Overwrite a file with the content of a textarea
- Website painfully slow after migration to VPS2
- How to access classes in theme of a plugin?
- Cookie set in a plugin visible in admin but not on front
- Edit plugin filter
- WordPress Feedback popup with date saved into table
- Plugin option for input box validation
- Exclude specifed files from plugin editor
- Am I using an action hook correctly?
- Show widget location borders for development
- Filter for modifying image on upload
- WordPress Related Plugin – Adding an image
- Show whether a post is plus or minus with Wp-Postratings
- Add A Button to WooCommerce Product Page
- adding a css file to my plugin
- Strict Standards: Non-static method in sidebar generator
- add_image_size is not generatin images of correct dimensions
- How can I delete the options from DB when the plugin is deleted?
- Meta box not displaying on the plugin page
- Warning: Undefined variable $admin
- plugin translation *.mo file not getting loaded for custom post