symfony 测试目录的声纳配置

tor*_*ten 3 symfony sonarqube

我正在寻找一种同时配置多个测试目录的方法。这是我目前的配置

sonar.sources=src

sonar.tests=src/Acme/Bundle/DemoBundle/Tests,src/Acme/Bundle/DatabaseBundle/Tests

sonar.phpUnit.configuration=app/phpunit.xml.dist

sonar.php.tests.reportPath=build/logs/junit.xml
sonar.php.coverage.reportPath=build/logs/clover.xml

sonar.libraries=vendor

sonar.language=php
Run Code Online (Sandbox Code Playgroud)

问题是,有没有办法为 sonar.tests 定义路径,例如

src/**/Tests
Run Code Online (Sandbox Code Playgroud)

声纳停止并出现以下错误:

 The folder 'src/**/Tests' does not exist for DemoProject
Run Code Online (Sandbox Code Playgroud)

Fab*_*eam 7

这确实是不可能的。实现您想要做的事情的最佳方法是使用包含和/或排除 - 接受通配符。

例如:

sonar.tests=src
sonar.test.inclusions=**/Tests/**
Run Code Online (Sandbox Code Playgroud)

您可以在“缩小焦点”文档页面上了解更多信息。