Closed throwable-one closed 7 years ago
for Python 3.2 (where all additional options are supported) you need to call unittest.main differently:
main(argv=args, module=None, buffer=True, testRunner=unittestpy.TeamcityTestRunner)
this way all custom options like failfast will be passed to TextTestRunner which will handle it
@shalupov thats exactly what I am doing.
@throwable-one you're making an instance of TeamcityTestRunner by youself. If you pass type instead of instance unittest will create it itself and pass all relevant arguments (i.e. buffer and failfast)
@shalupov Got it, thank you!
btw, should not you fix your example code then: https://github.com/JetBrains/teamcity-messages ?
Launched from console
It says 2 tests (third one skipped)
Launched directly
Ran 3 tests. Third one is also launched (
##teamcity[testStarted timestamp='2017-04-18T18:33:29.621' captureStandardOutput='true' flowId='__main__.FooTest.test_3_test' name='__main__.FooTest.test_3_test']
)