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 226549 - support for remote phpunit and code coverage
Summary: support for remote phpunit and code coverage
Status: REOPENED
Alias: None
Product: php
Classification: Unclassified
Component: PHPUnit (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-22 16:57 UTC by fredgarlov00
Modified: 2014-09-20 18:45 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fredgarlov00 2013-02-22 16:57:13 UTC
Hello, 

would be really nice to be able invoke phpunit on remote server and download results + code coverage back to IDE and display it.

path to remote server + phpunit + code coverage output folder should be configurable

Thanks!
Comment 1 Tomas Mysik 2013-02-25 06:33:14 UTC
(In reply to comment #0)
> would be really nice to be able invoke phpunit on remote server

How exactly? Simply reopen this issue.

Thanks.
Comment 2 fredgarlov00 2013-02-25 20:10:59 UTC
there is similar issue

http://netbeans.org/bugzilla/show_bug.cgi?id=197552

and ideas

http://forums.netbeans.org/topic21732-0-asc-15.html
http://stackoverflow.com/questions/9125305/php-unit-testing-on-remote-server-with-netbeans-phpunit-possible


C++ module can even build a project on remote machine and download results to the IDE: http://netbeans.org/kb/docs/cnd/remotedev-tutorial.html#workflow


If implemented one would specify remote settings for a project and IDE would know to trigger remote script instead of local phpunit installation.
Comment 3 fredgarlov00 2013-02-25 21:06:01 UTC
Given ssh is installed on local machine (e.g. with git bash) IDE could trigger remote script via ssh: 

ssh user@example.com 'bash -s' < script_calling_phpunit.sh

http://stackoverflow.com/questions/7048170/running-full-commands-through-remote-ssh


The results are stored remotely in predifined folder of the current project, IDE then could download it via (S)FTP.