The surefire report generation currently ignores any compilation errors, which means that when you test with the build parameter that the build should not fail on test failures (common in build pipelines), compilation errors can easily go unnoticed. The expected outcome would be that such a build becomes unstable due to the errors reported in the surefire report.
When a compilation error occurs a file like this is generated as input for the surefire-report.xsl:
<?xml version="1.0" encoding="UTF-8"?>
<testsuites/>
So no real indication of an error can be processed by that XSL file. In theory one could say that this sort of output usually indicates an error and should be reported as an error, as a testsuite without tests is almost certainly a mistake. But I am almost certain that such empty testsuites are out there in the wild and reporting errors on those now might be annoying.
I don't think xspec-maven-plugin can retrieve details on any actual errors, so maybe xspec/xspec has to be adjusted if we want to report on these errors in the surefire reports...
The surefire report generation currently ignores any compilation errors, which means that when you test with the build parameter that the build should not fail on test failures (common in build pipelines), compilation errors can easily go unnoticed. The expected outcome would be that such a build becomes unstable due to the errors reported in the surefire report.
When a compilation error occurs a file like this is generated as input for the surefire-report.xsl:
So no real indication of an error can be processed by that XSL file. In theory one could say that this sort of output usually indicates an error and should be reported as an error, as a testsuite without tests is almost certainly a mistake. But I am almost certain that such empty testsuites are out there in the wild and reporting errors on those now might be annoying.
I don't think xspec-maven-plugin can retrieve details on any actual errors, so maybe xspec/xspec has to be adjusted if we want to report on these errors in the surefire reports...