我们在通常由maven surefire插件执行的JUnit测试中使用过滤的testResources。也就是说,pom包含一个部分调试maven junit测试过滤资源?
<build>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
</testResource>
</testResources>
...
如何在调试器中运行此类JUnit测试?如果我在eclipse中执行测试,测试失败,因为测试资源没有被过滤。如果过滤后的测试资源将写入目标目录的某处,我可以将其用作额外的源路径 - 但事实并非如此。如果我尝试使用Debug As/maven test在eclipse中运行maven build,那么构建不会停在断点处。任何其他想法?