我在NUnit中使用以下代码写入TeamCity的构建日志。
Console.WriteLine("##teamcity[blockOpened name='ARRANGE']")
Console.WriteLine("##teamcity[testStep name='Step 1 : Arrange Export Manager'")
Console.WriteLine("##teamcity[testStep name='Step 2 : Arrange the object to be exported'")
Console.WriteLine("##teamcity[testStep name='Step 3 : Export the object to be exported'")
Console.WriteLine("##teamcity[testStep name='Step 4 : Assert that export worked'")
Console.WriteLine("##teamcity[testStep name='Step 5 : Arrange Import Manager'")
Console.WriteLine("##teamcity[blockClosed name='ARRANGE']")
知道为什么在块名称后面有 [测试错误输出] 消息?