Formatted output using teamcity
Hello,
as i was working with PHPstorm, i noticed that, when running the script that the IDE used for the tests on the terminal, i get some strings of the sort ##teamcity[... .
I found this page here, which explains what they are https://www.jetbrains.com/help/teamcity/build-script-interaction-with-teamcity.html?_ga=2.85723167.744593657.1586442676-1995431023.1585731065 , but when i try something like echo "##teamcity[buildStop comment='canceling comment' readdToQueue='true']", the result is unformatted.
My question is how do i make my own formatted output using the team city feature?
Thank you.
请先登录再写评论。
I am afraid that I got you wrong, but.
You mean, in the terminal? That's expected, these directives are made for TeamCity, it can parse them and output the results formatted. PhpStorm can also do that under the hood.
Or, you are using TeamCity and the output fails to be rendered properly there?
I am trying to replicate the formatting that Phpstorm does when PHPunits displays results. I have read the PHPUnit source code and it sends ##teamcity like messages to the output stream. Does PhpStorm only format ##teamcity messages for specify applications?