Is it possible to disable the teamcity surefire watcher from mvn when not running tests?

We have maven builds to do simple things that do not need any test reporting support and which result in a large amount noise in the TeamCity build logs.  

 

Some examples of the simple Teamcity builds which we would like to disable TeamCity surefire plugin would be:

mvn versions:set

 or maven builds which skip tests:

mvn -DskipTests

 

 
1
3 comments

Hi Sofoklis,

I'm not too familiar with the surefire plugin. As far as I know, it only gets run during the test phase. If you skip tests or don't run it, it shouldn't be run? What kind of noise is it generating? Also, which version of teamcity are you using?

0
Avatar
Permanently deleted user

Hi Denis,

This is not about the surefire plugin itself, it's the integrated teamcity surefire watcher that with a mvn build step grabs the test output to report in the gui. Anytime the tests are not run we get the below output for every maven module. We're using TeamCity Enterprise 2017.2 (build 50574)


Surefire report watcher
[Surefire report watcher] Watching paths:
[Surefire report watcher] (...)target/failsafe-reports/TEST-*.xml
Importing data from '(...)/target/failsafe-reports/TEST-*.xml' (not existing file) with 'surefire' processor
Importing data from '(...)/target/surefire-reports/TEST-*.xml' (not existing file) with 'surefire' processor

 

Thanks,

Morten

 

1

Dear Denis Lapuente

Couple years passed, but I'm searching the answer for the same question.

Teamcity plugin for maven builds is very convenient, but some of our builds (multimodule, around 300 modules) are not executing tests at all. But still Surefire report watcher is spawned by this TC plugin to watch if there are any tests results incoming.

Additional flag to disable it would be very appreciated.

Thanks,

Mat. 

0

Please sign in to leave a comment.