How to delete the datas generated during a functionnal test after the completion of these tests

15 views
Skip to first unread message

Bocar Alpha Ba

unread,
Jun 20, 2016, 10:30:19 AM6/20/16
to Geb User Mailing List
Hii,

My goal is to delete the datas generated in the database during a functionnal test after the completion of these tests.
Maybe use an annotation or use cleanSpec in a specific manner could solve my problem

In my research i found that cleanSpec is used before execution of tests but not after 

Some ideas please

J. David Beutel

unread,
Jun 20, 2016, 5:44:40 PM6/20/16
to geb-...@googlegroups.com
If you are using Spock, cleanupSpec runs after the last feature method:

http://spockframework.github.io/spock/docs/1.0/spock_primer.html#_fixture_methods

Also, if you are testing a Grails app in a separate JVM, you can use remote-control:

https://grails.org/plugin/remote-control

Cheers,
11011011
--
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/bba76aad-ea0d-4aa0-85e0-2b1879984ec2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages