An example project to run gauge-java tests within a container when main web application is also a docker container.
The project uses this simple sitture/docker-cd-seed application and runs gauge-java
tests from a docker container.
- Install Docker from here
Run the following to bring up the both web
and sut
containers (in background).
docker-compose build
docker-compose up -d
The above will bring up both the web
container at http://localhost:8080
and sut
container will compile the maven based gauge project and exit.
The gauge container sut
is run from an existing docker-gauge image from Hub. See sitture/docker-gauge-java.
Run the following to run gauge tests from maven. The entry point command for sut
container is mvn
.
docker-compose run sut test
The above is equivalent to running mvn test
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request