当我在我们的项目(Alt+F6)中运行 phpUnit 测试时,NetBeans 始终将其运行为:
"/usr/bin/php" "/usr/bin/phpunit" "--colors" "--log-junit" "/tmp/nb-phpunit-log.xml" "--configuration" "/storage/proj/t4/products/t42base/web/tests/phpunit.xml" "/home/maxgu/etc/netbeans-7.4/php/phpunit/NetBeansSuite.php" "--run=/storage/proj/t4/products/t42base/web/tests"
我如何禁用此选项:
"/home/maxgu/etc/netbeans-7.4/php/phpunit/NetBeansSuite.php" "--run=/storage/proj/t4/products/t42base/web/tests"
?
使用此选项 phpunit 忽略 XML 配置文件中的设置:
<testsuites>
<testsuite name="Pages">
<directory>../module/Pages/test/UnitTest</directory>
</testsuite>
<testsuite name="Application">
<directory>../module/Application/test/UnitTest</directory>
</testsuite>
</testsuites>