Adding test result/artifact from external tool

Hello,

 

we're developing firmware for an embedded system with multiple controllers. We have a test system that downloads the latest builds from Teamcity, flashes them onto the respective controller and runs some integration tests on our target hardware. I would like to publish a test result to Teamcity after  the test run. As the test system is also used for other purposes I refrain from making it a part of the actual build process of Teamcity.

Can I somehow add a test result or a build artifact to an already finished build? Maybe via the REST API?

 

Thanks,

Markus

1
1 comment

Hi Markus,

 

Adding artifacts to a build post-build is possible. Artifacts are stored in the data directory (assuming no external artifact storage), so you can just push them to the appropriate folder and the server will automatically pick them up.

 

Adding test results, on the other hand, is not possible. The best solution would be to include the step in TeamCity and pick up the test results, but if that can't be done, probably adding a build artifact is the easiest way. You could use the third party reports feature to add the reports (although it would fail on displaying it until the report is added later on): https://confluence.jetbrains.com/display/TCD18/Including+Third-Party+Reports+in+the+Build+Results

 

Another option would be to have a separate build, with a dependency on the one you currently have, where you load the already ran-tests. Due to the dependency, your results will still be linked to the correct build, but without requiring running it automatically (It would need to be run manually or triggered somehow once the integration tests are done)

0

Please sign in to leave a comment.