samedi 28 février 2015

Visual Studio unit test detect failure

So I am writing tests in Visual Studio 2015, and executing using MS UnitTesting to run it. What I want to do is write some code then when the test it done I can update a rally test case. What I am looking for is how to detect if the test case that just ran passed or failed. I have been looking at reflection but not seeing an option for the test



[TestCleanup()]
public void MyTestCleanup()
{
// Code to check if test passes or fails

Common.DriverQuit();
}


Then based off that answer I can write the rest of the code. I just need to figure how to gain access to test results if possible.


Aucun commentaire:

Enregistrer un commentaire