Is it possible to run code after all tests finish executing in MStest

前端 未结 4 750
隐瞒了意图╮
隐瞒了意图╮ 2021-02-04 01:28

I am writing coded ui tests and I have the application open if it is not already open. Then if one of them fails I close the application the thing is I have multiple tests in mu

4条回答
  •  猫巷女王i
    2021-02-04 01:38

    Perhaps what you're looking for is the TestCleanup attribute?

    EDIT: Also, if you want to run something after all tests have been run, the AssemblyCleanupAttribute might be more appropriate.

提交回复
热议问题