当我在我们的项目中运行phpUnit测试时(Alt + F6)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>
答案 0 :(得分:0)
您可以在项目选项中为phpunit设置自定义配置