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

前端 未结 4 741
隐瞒了意图╮
隐瞒了意图╮ 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条回答
  •  北海茫月
    2021-02-04 01:47

    If you just want to clean up after all tests inside a single class have finished, use the ClassCleanup attribute rather than the AssemblyCleanup attribute

提交回复
热议问题