Code Coverage Report 0% Vagrant / Homestead

 I have setup Phpunit tests to run remotely on homestead vagrant box, so far so good. The code coverage will sadly always returns 0%, even thou the tests and coverage executes flawless, the files in PHPStorm is from a folder from my Windows pc there is linked to vagrant, therefor I believe from other issues read online, PHPunit Code Coverage, can't match the files on the windows machine with the vagrant box.

I have seen screenshots from earlier versions, where you could specify the mappings between local files and remote files in code coverage, this I can't find in the current version of PHPStorm, anyone have any ideas how to fix it? Or any other ideas, on whats going on?

Best Regards, Martin

 

2 comments
Comment actions Permalink

Hello,

Please provide the output from Help > Settings summary > PHPUnit.

0
Comment actions Permalink

Changed some folder names for privacy.

 

=====PHPUNIT SETTINGS=====
-----------------------------
Name : Local
Loader type : CUSTOM_LOADER
Path to script : "\vendor\phpunit\phpunit\phpunit"
Default configuration file : "null"
Default bootstrap file : "null"
-----------------------------
Name : Interpreter: Remote PHP 7
Loader type : CUSTOM_LOADER
Path to script : "/vendor/autoload.php"
Default configuration file : "/home/vagrant/Code/easyinspect-app/phpunit.xml"
Default bootstrap file : "null"
=====RUN CONFIGURATION=====
Configuration name : RunTests
Configuration type : PHPUnit
Test scope : XML
Use alternative configuration file : "null"
Test Runner options : null
Interpreter options : null
Working directory : "null"
=====DEPLOYMENT SETTINGS=====
Default Server : null
=====ADDITIONAL SETTINGS=====
Upload changed files automatically : Never
Upload external changes : false
Delete target items when source do not exist : false
Warn when uploading over newer file : NONE
=====PHP INTERPRETER=====
Name : Remote PHP 7
Remote : true
Connection type : Vagrant
Machine name : null
Vagrant Folder : "C:/Users/Martin/git/Homestead"
Path to PHP executable : vagrant://C:/Users/Martin/git/Homestead/usr/bin/php
Version : 7.0.2-4+deb.sury.org~trusty+1
Debug extension : xdebug 2.4.0RC3
Main php.ini path : "/etc/php/7.0/cli/php.ini"
Additional php.ini path : "/etc/php/7.0/cli/conf.d/20-apcu.ini, /etc/php/7.0/cli/conf.d/20-apcu_bc.ini, /etc/php/7.0/cli/conf.d/20-curl.ini, /etc/php/7.0/cli/conf.d/20-gd.ini, /etc/php/7.0/cli/conf.d/20-imap.ini, /etc/php/7.0/cli/conf.d/20-json.ini, /etc/php/7.0/cli/conf.d/20-memcached.ini, /etc/php/7.0/cli/conf.d/20-mysqli.ini, /etc/php/7.0/cli/conf.d/20-opcache.ini, /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini, /etc/php/7.0/cli/conf.d/20-pdo_pgsql.ini, /etc/php/7.0/cli/conf.d/20-pdo_sqlite.ini, /etc/php/7.0/cli/conf.d/20-pgsql.ini, /etc/php/7.0/cli/conf.d/20-readline.ini, /etc/php/7.0/cli/conf.d/20-sqlite3.ini, /etc/php/7.0/cli/conf.d/20-xdebug.ini"
Configuration options :
xdebug.dump.COOKIE :
xdebug.remote_log :
xdebug.dump.SERVER :
xdebug.remote_cookie_expire_time : 3600
xdebug.dump.FILES :
xdebug.remote_connect_back : 0
xdebug.collect_assignments : 0
xdebug.force_error_reporting : 0
xdebug.file_link_format :
xdebug.max_nesting_level : 256
xdebug.profiler_append : 0
xdebug.dump_undefined : 0
xdebug.show_mem_delta : 0
xdebug.max_stack_frames : -1
xdebug.var_display_max_children : 128
xdebug.remote_enable : 0
xdebug.profiler_enable_trigger_value :
xdebug.collect_return : 0
xdebug.remote_autostart : 0
xdebug.trace_enable_trigger_value :
xdebug.remote_port : 9000
xdebug.profiler_output_name : cachegrind.out.%p
xdebug.trace_output_name : trace.%c
xdebug.dump.REQUEST :
xdebug.overload_var_dump : 2
xdebug.show_exception_trace : 0
xdebug.dump.GET :
xdebug.halt_level : 0
xdebug.scream : 0
xdebug.collect_includes : 1
xdebug.default_enable : 1
xdebug.var_display_max_depth : 3
xdebug.trace_output_dir : /tmp
xdebug.var_display_max_data : 512
xdebug.profiler_enable_trigger : 0
xdebug.trace_format : 0
xdebug.show_error_trace : 0
xdebug.dump.ENV :
xdebug.profiler_aggregate : 0
xdebug.profiler_output_dir : /tmp
xdebug.extended_info : 1
xdebug.remote_mode : req
xdebug.auto_trace : 0
xdebug.dump.POST :
xdebug.remote_host : localhost
xdebug.idekey :
xdebug.profiler_enable : 0
xdebug.show_local_vars : 0
xdebug.dump_globals : 1
xdebug.trace_options : 0
xdebug.trace_enable_trigger : 0
xdebug.dump_once : 1
xdebug.dump.SESSION :
xdebug.force_display_errors : 0
xdebug.remote_handler : dbgp
xdebug.collect_vars : 0
xdebug.coverage_enable : 1
xdebug.remote_addr_header :
xdebug.cli_color : 0
xdebug.collect_params : 0

0

Please sign in to leave a comment.