SolutionCop
SolutionCop copied to clipboard
--build-server-no-success-messages is ignored
I just checked v0.7.0 from command line and it seems to work - no success TeamCity message. End of console output is like this:
...
##teamcity[testIgnored name='SolutionCop.TreatWarningsAsErrors']
INFO: Analyzing projects using rule WarningLevel
##teamcity[testIgnored name='SolutionCop.WarningLevel']
##teamcity[testSuiteFinished name='SolutionCop']
INFO: Analysis finished!
INFO: No errors found!
Without flag it is:
...
##teamcity[testIgnored name='SolutionCop.TreatWarningsAsErrors']
INFO: Analyzing projects using rule WarningLevel
##teamcity[testIgnored name='SolutionCop.WarningLevel']
##teamcity[testSuiteFinished name='SolutionCop']
INFO: Analysis finished!
INFO: No errors found!
##teamcity[progressMessage text='PASSED - SolutionCop.xml']
@Litee , what Team City thinks:
- First test arrived: stop displaying status messages (such as "Building project XXX", etc)
- TeamCity shows only like "4 tests passed" (for 4 SC rules)
- After Unit Test session start (e.g. after building) TeamCity starts to increment tests counter
What I think we should to improve:
- All rules ignoration should be written to console without TeamCity mark
- All passed tests info should be written to console without TeamCity mark
- All errors are written with TeamCity mark
Sounds like one more strategy for console output. Let us do the following - I just have pushed re-factored command-lines parameters processing. You can raise PR with alternative strategy into ReportFormatType enum + processing. IMO it will be faster ;)