Running Geb Scripts from Command Line

28 views
Skip to first unread message

Mohammed Abbas

unread,
Mar 24, 2019, 9:46:40 AM3/24/19
to Geb User Mailing List
Hi All,

I would like to know how do I run the GEB scripts from the windows command line?

Thanks

jeremy...@gmail.com

unread,
Mar 26, 2019, 9:43:48 AM3/26/19
to Geb User Mailing List
On a mac it's ./gradlew test so I Windows I would imagine it is something like gradle.bat test.  I think that will run all of the tests.  You can add more to the command line such as specific test classes, ex: gradle.bat test --tests TestClassOne and that will only run the tests in TestClass One.  

I could be wrong, but nobody answered you yet so I thought I'd try.

Roy Grossman

unread,
Mar 26, 2019, 12:53:45 PM3/26/19
to Geb User Mailing List
If you have GEB in a groovy script file, then you can use the command  `groovy <name of script>.groovy` to run the script.
Please make sure that you have the correct  @Grep dependencies
Reply all
Reply to author
Forward
0 new messages