NUnit: Accessing the Failure Message in TearDown()

前端 未结 3 1338
悲哀的现实
悲哀的现实 2020-12-18 12:48

I\'m trying to log the results of automated tests run in NUnit in a small database so that data is easily accessible and more securely logged for various reasons. (There\'s

3条回答
  •  春和景丽
    2020-12-18 13:27

    NUnit 3.0 has these details contained inside of TestContext.CurrentContext.~

    Caution: In the event that you have the VS test adapter included as an extension, using the event handler will cause the tests to run twice. Once for the extension and once for the including dll required for implementing the event handler.

提交回复
热议问题