Build script interaction problem - grouping of integration tests is not in hierarchical format.
Hi,
I am using a python script to run the integration tests where i am using the below team city commands to achieve the grouping of tests.
print "##teamcity[testSuiteStarted name='Integration Tests']"
print "##teamcity[testStarted flowId='FirstTest' name='FirstTest']"
print "##teamcity[testFinished flowId='FirstTest' name='FirstTest']"
print "##teamcity[testStarted flowId='SecondTest' name='SecondTest']"
print "##teamcity[testFinished flowId='SecondTest' name='SecondTest']"
print "##teamcity[testSuiteFinished name='Integration Tests']"
And i am getting the below output in team city build log due to which the 'Integration Tests' testsuite is not loading under tests tab whereas it is showing as <no suite>.
[11:56:56] : [Step 5/6] Integration Tests
[11:56:56] : [Step 5/6] FirstTest
[11:56:56] : [Step 5/6] SecondTest
but i am expecting build log in hierarchical format like shown below-
[11:56:56] F: [Step 5/6] Integration Tests
[11:56:56] : [Integration Tests]
[11:56:56] : [Integration Tests] FirstTest
[11:56:56] : [FirstTest]
[11:56:56] : [Integration Tests]
[11:56:56] : [Integration Tests] SecondTest
[11:56:56] : [SecondTest]
[11:56:56] : [Integration Tests]
Is this possible? Or is there another way to achieve my intent?
Please sign in to leave a comment.
Hi Adil,
TeamCity should be picking up the messages just fine and present the tests results if some of them happen. What version of teamcity are you using? Also how exactly are you running your python script? Using a python runner or a command line?