Testing 来自终端的Silverstripe测试

Testing 来自终端的Silverstripe测试,testing,silverstripe,Testing,Silverstripe,如何在mysite中只运行测试,而不运行silverstripe附带的所有模块和框架测试 当我跑的时候 phpunit mysite/tests/PageTest silverstripe运行所有的框架测试 我可以访问tests/dev/tests/PageTest,但不能通过命令行访问 我已设置了phpunit.xml文件: <phpunit bootstrap="framework/tests/bootstrap.php" colors="true">

如何在mysite中只运行测试,而不运行silverstripe附带的所有模块和框架测试

当我跑的时候

 phpunit mysite/tests/PageTest   
silverstripe运行所有的框架测试

我可以访问tests/dev/tests/PageTest,但不能通过命令行访问

我已设置了phpunit.xml文件:

<phpunit bootstrap="framework/tests/bootstrap.php" colors="true">

        <testsuite name="Default">
                <directory>mysite/tests</directory>
         </testsuite>

        <listeners>
                <listener class="SS_TestListener" file="framework/dev/TestListener.php" />
        </listeners>

        <groups>
                <exclude>
                        <group>sanitychecks</group>
                </exclude>
        </groups>
</phpunit>

mysite/tests
卫生检查
我根据以下内容运行测试:


您还可以按模块运行测试。让dev/tests/module/mysite运行“我的站点”文件夹中的所有测试。

谢谢。这很有效!这些文档包括直接使用phpunit命令,但我想这是一个好处,因为有多种方法可以做到这一点
# Run specific tests (comma-separated)
sake dev/tests/FolderTest,OtherTest

# Skip some tests
sake dev/tests/all SkipTests=MySkippedTest