crash - How to find or log currently running test in MSTEST.exe -


we have build process including unittest launched via mstest.exe. unittest stuck, messagebox or send error dialog stuck or entire process crashes. don't know how find of tests bad one.

is there way how find name of running test in case unittest stuck?

is there way how find name of unittest runned last time?

i don't want set timeout every single test, because not sure, suitable timeout.

a nice solution me log when unittests start when finish. find last logged unittest. there way log it?

you can use testcontext.testname it:

/// use method run code before running each test. [testinitialize()] public void testinitialize() {     yourlogger.logformat("run test {0}", this.testcontext.testname); }  /// use testcleanup run code after each test has run [testcleanup()] public void mytestcleanup() {     yourlogger.logformat("test {0} done", this.testcontext.testname); } 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -