Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

How to run test in an order?
Megnath777
#1 Posted : Thursday, June 13, 2013 4:41:09 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/13/2013(UTC)
Posts: 1
Location: United Kingdom

We have few project within our solution.
our test have to be run in a particular order for them to pass. If the order is changed most test cases would fail.
(Most of our test cases are running against physical database. So the database should be created first and then the test cases should be run)
Normally we use VSMDI file in the Visual studio to do this job.
Is their a way to import VSMDI file into Ncrunch so that test would always run in a particular order.?

I am doing evaluation now . Only if I can pass this we can go to the next stage.

Please do the needful.

Regards
Mega
Remco
#2 Posted : Thursday, June 13, 2013 9:18:56 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,979

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi Mega,

Thanks for posting and for your interest in NCrunch!

Unfortunately, the mechanics of NCrunch make custom test sequences impossible. This is because the engine is designed to execute test in order of priority (which is dynamically determined) rather than in a fixed sequence. There is no way to use such a test suite with NCrunch without redesigning the test suite. As a suggestion, you may be able to make use of [AssemblyInitialize] in order to set up the database for other tests to run.

You can find more information on this in the test atomicity section of the documentation.

Cheers,

Remco
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.029 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download