Filter of test task

7 views
Skip to first unread message

M T

unread,
Aug 8, 2020, 10:06:46 AM8/8/20
to Geb User Mailing List
Hey again good people. Noticed something weird. Hopefully I'm over complicating matters.
So i forked the geb gradle example.
I've been developing my tests with the standard chrome/Firefoxtest task with --test filter. No issue.
However, when using the test task, that depends on each driver task, the filter is ignored.
Packages, class names, applying the filter in a doFirst closure--nothing seems to work and filter correctly. Curiously, if the test task is called via intelij config it works perfectly.
I fear that something that I haven't fully understand is happening here and that's what Id like to figure.
Thanks in advance

Marcin Erdmann

unread,
Aug 13, 2020, 4:15:09 PM8/13/20
to geb-...@googlegroups.com
You can only use --test filter when requesting execution of a single Test task. If you are requesting execution of multiple Test tasks via a lifecycle task (which the task called test in that project boils down to) then the filter is ignored. This is just how it works because gradle cannot figure out which task you want to apply the filter to if you requested execution of a task that depends on other tasks.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/319c9504-a448-48fe-9aa7-fe41e67e712fo%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages