Closed backstageel closed 10 years ago
Sorry, i have found the solution on another issue here.
Change phpunit.sh code to this:
<?php array_shift($argv); foreach ($argv as $idx => $arg) { if (preg_match('/NetBeansSuite.php$/', $arg)) { $argv[$idx] = DIR . DIRECTORY_SEPARATOR . 'NetBeansSuite.php' ; } } $command = '/path/to/phpunit'; $args = join(' ', $argv);
passthru($command . ' ' . $args);
I have already fixed this problem (#70). But I have not released a new stable version yet. #70 is available with 0.9.8.*-dev. (https://github.com/junichi11/cakephp-netbeans/releases)
Thanks.
Hello, I have followed all your steps to install this plugin and I have Everything running fine, except Unit Tests. I have generated all files via PHPUnit Test Init included with the plugin.
Now, When I click Test from project context menu, I got the following message: No Tests executed.... Perhaps error occurred, verify in Output window. And in the Output Window: "/usr/bin/php" "/var/www/opensga/nbproject/phpunit.sh" "--colors" "--log-junit" "/tmp/nb-phpunit-log.xml" "--bootstrap" "/var/www/opensga/app/webroot/bootstrap_phpunit.php" "/usr/local/netbeans-7.4/php/phpunit/NetBeansSuite.php" "--run=/var/www/opensga/app/Test/Case" NETBEANSSUITE="" while [ "$1" != "" ] do case "$1" in NetBeansSuite.php ) NETBEANSSUITE="$NETBEANSSUITE /var/www/opensga/nbproject/NetBeansSuite.php";; run ) NETBEANSSUITE="$NETBEANSSUITE $1=$2" shift;; * ) NETBEANSSUITE="$NETBEANSSUITE $1";; esac shift done /usr/bin/phpunit $NETBEANSSUITE Done.
And then, i tried running the tests from the command line, By issuing: "/var/www/opensga/nbproject/phpunit.sh" "--colors" "--log-junit" "/tmp/nb-phpunit-log.xml" "--bootstrap" "/var/www/opensga/app/webroot/bootstrap_phpunit.php" "/usr/local/netbeans-7.4/php/phpunit/NetBeansSuite.php" "--run=/var/www/opensga/app/Test/Case"
And in command line the tests where executed without problems. *Note that I'm not invoking the /usr/bin/php when Running from command Line, and everything is fine.
How can i resolve this issue, so i can run tests from Netbeans interface?