Hi Romz,

To be honest it's more a Spock question than a Geb question. You could in
theory create a JUnit test suite of specifications(
https://groups.google.com/forum/#!topic/spockframework/u4iwcAP8kng) which
would influence the order of test class execution but I would strongly
advise not to do it.

Ideally you want your tests to be completely independent so that you can
run them in any order or even more importantly on it's own. This will save
you a lot of time and head scratching when a test fails because a new test
has been added which runs before and modifies the state on which your tests
depends - this is sometimes referred to as test bleed. Also consider a
situation where you have a fixed order of all of your tests and a test
which is last in that order fails - you will need to run the whole suite
every single time you want to run that test otherwise you have no guarantee
that it will run with the expected state.

Marcin

On Wed, Nov 9, 2016 at 8:05 AM, <[email protected]> wrote:

> H Geb User
>
>
> I would like to ask if we can modify the sequence of test execution
> between test classes, i just observed that it was executed alphabetically
>
>
>  i.e
> when i run the test.
> order is
> 1. AGebSpec.groovy, ->  2. BGebSpec.groovy. ->  3. CGebSpec.groovy.
>
> Thanks and regards,
> Romz
>
> --
> You received this message because you are subscribed to the Google Groups
> "Geb User Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/geb-user/e9305e57-ff0b-4684-8b82-033913ed4fea%40googlegroups.com
> <https://groups.google.com/d/msgid/geb-user/e9305e57-ff0b-4684-8b82-033913ed4fea%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/CA%2B52dQS__8N5T%3D27o32vQQ-qPDgdRjTUZd-izaLRm8rhnVhhDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to