Skip to content

Groovy based template for e2e/api/unit test automation

Notifications You must be signed in to change notification settings

iklymchuk/GTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GTest

Precondition: JDK, GDK, Chrome/Chromium

Groovy based testing for:

  1. e2e testing - spock + geb

gradle -Dtest.single=BookTestSample -Dgeb.env=chrome -Dwebdriver.chrome.driver=chromedriver clean test

or Page Object example

gradle -Dtest.single=BookTestPageObject -Dgeb.env=chrome -Dwebdriver.chrome.driver=chromedriver clean test

  1. api testing - spock + http-builder

gradle -Dtest.single=ApiTest clean test

  1. unit testing - spock

    gradle -Dtest.single=CalculatorTest clean test

  2. deploy - spock + geb + testcontainers

gradle -Dtest.single=DeployTest clean test

Deploying our app to the docker container, starting it, runing our tests and shutdown the container.

Video of test execution into container will be saved into build folder.

Releases

No releases published

Packages

No packages published