0
在我們的VSTS發佈管理腳本中,我們運行xUnit-Tests。 在我的下釋放日誌窗口我看到的東西,如:如何從xUnit-Test中登錄到VSTS版本管理的日誌窗口?
2017-03-08T17:19:39.8364561Z Information: [xUnit.net 00:00:00.9224776]
Starting...
....
....
如何從我的xUnit試驗中記錄到該窗口?
在我們的VSTS發佈管理腳本中,我們運行xUnit-Tests。 在我的下釋放日誌窗口我看到的東西,如:如何從xUnit-Test中登錄到VSTS版本管理的日誌窗口?
2017-03-08T17:19:39.8364561Z Information: [xUnit.net 00:00:00.9224776]
Starting...
....
....
如何從我的xUnit試驗中記錄到該窗口?
任何打印在標準輸出上的東西都會顯示在發佈的輸出窗口上。
注意,您將能夠編寫特定的構建&脫模劑會攔截並執行,例如,你可以打印特定警告/錯誤與task.logissue
命令:
##vso[task.logissue type=error;sourcepath=consoleapp/main.cs;linenumber=1;columnnumber=1;code=100;]this is an error