Eclipse中PhpUnit的MakeGood错误

Eclipse中PhpUnit的MakeGood错误,eclipse,phpunit,makegood,Eclipse,Phpunit,Makegood,我想使用Eclipse插件“makegood”在Eclipse中使用php单元测试。当我在控制台上运行phpunit时,一切都正常 我按照以下说明在Eclipse中设置makegood插件: makegood的状态为“等待测试运行…”,但当我尝试运行单元测试时,控制台中会打印此错误: Fatal error: Class > 'Stagehand\TestRunner\CLI\TestRunnerApplication\Command\CommandRepository' > not

我想使用Eclipse插件“makegood”在Eclipse中使用php单元测试。当我在控制台上运行phpunit时,一切都正常

我按照以下说明在Eclipse中设置makegood插件:

makegood的状态为“等待测试运行…”,但当我尝试运行单元测试时,控制台中会打印此错误:

Fatal error: Class
> 'Stagehand\TestRunner\CLI\TestRunnerApplication\Command\CommandRepository'
> not found in C:\Users\myNameWith18Charac
> \.eclipse\org.eclipse.platform_4.3.0_1709980481_win32_win32_x86_64\plugins\com.piece_framework.makegood.stagehandtestrunner_2.5.0.v201311031709\resources\php\php\Stagehand\TestRunner\CLI\TestRunnerApplication\Application.php
> on line 64
> 
> Call Stack:
>     0.0000     148336   1. {main}() C:\Users\myNameWith18Charac\.eclipse\org.eclipse.platform_4.3.0_1709980481_win32_win32_x86_64\plugins\com.piece_framework.makegood.stagehandtestrunner_2.5.0.v201311031709\resources\php\bin\testrunner.php:0
>     0.0100     460744   2. Stagehand\TestRunner\CLI\TestRunnerApplication\Application->__construct()
> C:\Users\myNameWith18Charac\.eclipse\org.eclipse.platform_4.3.0_1709980481_win32_win32_x86_64\plugins\com.piece_framework.makegood.stagehandtestrunner_2.5.0.v201311031709\resources\php\bin\testrunner.php:58
Stagehand\TestRunner\CLI\TestRunnerApplication\Command\CommandRepository
已存在


这条路可能太长了吗?但我不知道,如何改变它。我正在使用win7 x64。

我在Ubuntu中看到了同样的情况,运行Eclipse Kepler和PDT 3.3

在MakeGood中启用debug,我可以看到实际运行的命令是
php
,带有我当前查看的文件的单个参数(例如test)

它根本无法像广告中所说的那样工作,因为它只是试图自己执行文件

降级到Eclipse3.8(Juno),PDT3.0.0对我来说很有用

*编辑

您可以将自定义bash脚本定义为php可执行文件作为解决方法,并硬编码到testrunner.php的路径

#!/bin/bash
# MakeGood for PHP stopped working after Eclipse Indigo (3.8) due to inability to run testrunner.php
# This is a hack PHP binary, to be configured as PHP executable for MakeGood to start working in Juno, Kepler and Luna.

# Remove the -n operator to read all config files
options=`echo $@ | sed 's%-n %%' | sed 's%-c .+? %%'`

# Hardcode path to testrunner.php
options=`echo $options | sed 's@open_tag=on [^ ]*@open_tag=on /opt/testrunner.php

/usr/bin/php $options