mardi 6 septembre 2016

SQL Unit Test log/output order of execution

I have a few unit tests (around 50) that I have created for testing the stored procedures in my database project. When I run them using "Run all Tests" some tests fail. So, I run them individually and they all pass. So I can see that the order of execution is somehow inserting dodgy data in some tables that is causing an issue.

So I would like to know if there is a method to log or output (in the test window) what is the order of the unit tests that was run. Since they run quickly and the order changes every time I run, I cannot be sure of what run when. The Test Output window only holds when the Test was started and when it finished.

------ Discover test started ------

========== Discover test finished: 52 found (0:00:00.4010401) ==========

------ Run test started ------

========== Run test finished: 1 run (0:00:13.4663465) ==========

I would like to see something like this,

------ Discover test started ------

========== Discover test finished: 52 found (0:00:00.4010401) ==========

------ Run test started ------

------ TestA started ------

------ TestB started ------

========== Run test finished: 1 run (0:00:13.4663465) ==========

Is this even possible?

Aucun commentaire:

Enregistrer un commentaire