mercredi 26 août 2020

'Inconclusive' tests are reported as 'not run' by Azure DevOps

I have some integration tests that ​go out to an external service and may occasionally fail. For these, I'm running 'Assert.Inconclusive("errMsgHere");' so that the test doesn't cause the whole CI/CD pipeline to fail; I just want a warning. While this does give a warning icon when I'm running the tests locally in Visual Studio, for Azure DevOps the test is reported as 'not run'. Also, in the pipeline run's 'Tests' tab, the test's Debug details have a blank entry for the error message instead of "errMsgHere", even though that error message is included in the outputted .trx file! Surely Azure DevOps should show the message outputted by Assert.Inconclusive(). Is there any way to get at this message, or get the test result reported as something more useful than "not run"? Perhaps 'warning' or 'inconclusive'?

Aucun commentaire:

Enregistrer un commentaire