【问题标题】:how disable default netbeans settings for phpunit如何禁用 phpunit 的默认 netbeans 设置
【发布时间】:2013-11-16 05:19:16
【问题描述】:

当我在我们的项目(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>

【问题讨论】:

  • 如何配置 Netbeans 以使用 XML?
  • @Sven 我该怎么做?

标签: netbeans phpunit


【解决方案1】:

您可以在项目选项中为 phpunit 设置自定义配置

【讨论】:

  • Netbeans 从 Config>Sources>Test 文件夹中的文件夹运行所有测试并忽略 phpunit.xml 中的 >testsuites&lt
猜你喜欢
  • 2010-09-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-12-31
  • 1970-01-01
  • 1970-01-01
  • 2016-07-09
  • 1970-01-01
相关资源
最近更新 更多