This project simplifies executing Spock and Geb-based frontend tests.
Out of the box:
- Screenshot capturing,
- A dockerized browser (with Webdriver testcontainers),
Run the sample tests:
gradlew :spock-geb-quickstart-simple-example:test
gradlew :spock-geb-quickstart-more-examples:acceptanceTests
Run tests with a dockerized browser:
- update the
application.yml
as below:
# replace this setting:
browser-type: local
# with this one:
browser-type: docker
gradlew :spock-geb-quickstart-simple-example:test
Check the test results:
spock-geb-quickstart-simple-example/build/geb-spock-reports/index.html
spock-geb-quickstart-more-examples/build/geb-spock-reports/index.html
View the sample test projects:
Read more:
- Simple introduction: https://craigatk.github.io/spock-geb-intro/#/31
- Full docs: http://www.gebish.org/manual/current/
By default, the tests will trust any invalid SSL certificates. This will be fixed in a future release.
Everyone is warm welcome to contribute!
Please make sure to read the Contributing Guide and Code of Conduct before making a pull request.
Project is released under Apache License, Version 2.0 license.