Skip to content

An example project to run gauge-java tests within a docker container when main web application is also a docker container.

License

Notifications You must be signed in to change notification settings

sitture/docker-gauge-cd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-gauge-cd

Build Status

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.

Prerequisite

  • Install Docker from here

Running

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.

Gauge Container

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

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request