testrepository-dev team mailing list archive
-
testrepository-dev team
-
Mailing list archive
-
Message #00032
Re: Excluding serial cases in parallel mode
You should be able to use something like
http://testrepository.readthedocs.org/en/latest/MANUAL.html#grouping-tests
to map all your serial tests to one backend runner, which would then
have them serialised.
If they are not just serial, but actually unsafe in parallel, you
could use a regex on your run command to exclude them - python regex's
have negative lookahead assertions:
https://docs.python.org/2/howto/regex.html#lookahead-assertions
HTH,
Rob
On 15 July 2014 at 18:27, Vedamurthy Ananth Joshi <vjoshi@xxxxxxxxxxx> wrote:
> Hi,
> I have a scenario where a large number of our tests can be run in parallel.
> There are a few cases which are supposed to be run in serial. I can very
> well run them in sequence separately, by setting the test attribute as
> ‘serial’ .
>
> I don’t want these serial cases to be included when someone issues a
> --parallel option. How do I achieve this?
>
> Reorganizing the tests to group serially-runnable cases is not a preferred
> choice as of now.
>
> It would be helpful if I can identify within the testcase to know if it is
> being run in parallel mode.
>
> Thanks,
> Vedu
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~testrepository-dev
> Post to : testrepository-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~testrepository-dev
> More help : https://help.launchpad.net/ListHelp
>
--
Robert Collins <rbtcollins@xxxxxx>
Distinguished Technologist
HP Converged Cloud
References