Acceptance test using cucumber

Clone this repo:

Branches

  1. 2bb9a95 Update Dockerfile by Devops-POC · 5 years ago master
  2. 986edec Update Dockerfile by Devops-POC · 5 years ago
  3. 34ba552 typo corrected by Devops-POC · 5 years ago
  4. bfb628d changes the repository name by Devops-POC · 5 years ago
  5. 84459d0 updated readme file with information by Devops-POC · 5 years ago

"# Cucumber" tool based on Behavior Driven Development (BDD) framework which is used to write acceptance tests for the web application. Test is triggered from Maven. Dockerfile in the repository does all the server setup over ubuntu image and installs Maven, GIT, JDK.

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

sudo apt-get update

apt-cache policy docker-ce

sudo apt-get install -y docker-ce

sudo systemctl status docker

docker

Create Docker image from Dockerfile

docker build -f Dockerfile -t demo:cucumber . -- to create a docker image locally

docker images -- to list available docker images locally

docker run -it demo:cucumber bash -- to run and login into container

docker#container :

cd cucumber-java-skeleton/target

list available reports:

ls -ltr

cd surefire-reports | more TEST-skeleton.RunCukesTest.xml

docker ps -- to list running containers

docker ps -a -- to list all containers