Running combinations of tests

24 views
Skip to first unread message

Braavosi

unread,
Sep 12, 2017, 8:17:47 AM9/12/17
to Geb User Mailing List
Hello,


I have 10 different scenarios, which i have marked as base scenarios or (these are 10 specs) which i wanted to run with combination of say another 3 tests


Eg,

Say Base tests are B1, B2....B10 (all these are geb specs)
 and my tests are T1, T2, T3 (all these are geb specs)

I wanted to run B1T1, B1T2, B1T3...like all the 30 different combination

is there any way we can achieve this with Geb and spock (i can not use Junit or TestNG since i won't be getting the Spock report)

Br,
Vishnu

Alexander Kriegisch

unread,
Sep 13, 2017, 4:43:31 AM9/13/17
to geb-...@googlegroups.com
Instead of just answering your question technically, I would like to learn more from you first. Why would you run T1-3 for each of B1-10? What gets better if tests are repeated? One possible explanation would be that your B scenarios do some kind of setup for the T tests and that T's results are dependent on which B was running beforehand. To me this is a smell because tests should be independent of each other.

I know *what* you want to do, but please explain *why* you think you should do it that way. Then maybe we can find a way to achieve what you want to achieve by redesigning your tests in a more proper way.

-- 
Alexander Kriegisch

--
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 geb-user+u...@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/e85425e6-9e0a-42a2-891b-773ded67c4c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcin Erdmann

unread,
Sep 13, 2017, 8:01:37 AM9/13/17
to geb-...@googlegroups.com
Alex, can you please explain what Vishnu is trying to do? I'm struggling to understand what he means by running combinations of specs...

Alexander Kriegisch

unread,
Sep 13, 2017, 9:08:31 PM9/13/17
to geb-...@googlegroups.com
He wants to run all combinations of ordered 2-tuples of test groups B and T.

Base scenarios B1 to B10
Tests T1 to T3

Run B1, then T1
Run B1, then T2
Run B1, then T3
Run B2, then T1
Run B2, then T2
Run B2, then T3
(...)
Run B10, then T1
Run B10, then T2
Run B10, then T3

-- 
Alexander Kriegisch
Reply all
Reply to author
Forward
0 new messages