问题
With Maven, when I run the ‘test’ goal, tests are processed. When I run the ‘surefire:test’ goal, tests are not processed.
However, I’ve mentioned the surefire plugin this way in pom.xml:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>foo.xmlxml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
Can you explain this behaviour?
来源:https://stackoverflow.com/questions/51903460/surefiretest-goal-not-picking-tests