----- Original Message -----
From: "Vincent Massol" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 21, 2001 5:04 PM
Subject: [Cactus v2 - VOTE] Choosing what kind of tests to run


> Now that we have defined (in a previous email) how to define what is the
> type of a given test case, we also need to define how you will tell Cactus
> to run all MO tests, or all IC tests, or simply all the tests ...
>
> Obviously running an MO test and running an IC tests is different in term
of
> deployment. So we will need to have the ability to say to Cactus : "only
run
> MO tests". This is useful when debugging in an IDE for instance. Then
later,
> in an Ant build file, we will package a test war and copy it the servlet
> engine webapps directory and we'll need to tell Cactus to run all IC tests
> for instance...
>
> How do we do this ?
>
> * Solution 1 : Through a java -D parameter
>
> If we don't pass any parameter, it means all types of tests will be ran.
In
> order to tell Cactus only to run MO tests for instance, we will need to
> start JUnit, passing it a java parameter, as in "java -classpath
> [...] -Dcactus.type=MO junit.textui.TestRunner MyTestCaseClass". Or if you
> are running in an IDE, you'll simply have to add "-Dcactus.type=MO" to the
> java parameter list.
>
> That's of course if you'd like to mix kind of tests in the same test case
> class file. If you separate your test case class files then you simply
need
> to group the tests you want to run in a given test suite and that's all !
No
> need to define any java parameter.
>

+1

> * Solution 2 : do nothing
>
> i.e. always run all the tests that are in the test suite. So if you wish
to
> be able to only run MO tests, then you would need to define them in their
> own Test case class and add this class to a suite that will be used run MO
> tests only. Same for other types of tests.
>
> -Vincent
>
>

-Vincent

Reply via email to