QA role in the DevOps world Code examples for John Bryce seminar: http://bit.ly/2sKcnmz
This is a simple login application (Java/Maven) running on Tomcat
============
- Unit tests:
- using surefire maven plugin
- runs during the maven 'test' phase
mvn test
- Deploying to remote tomcat (commented, requires manager-gui enabled):
- requires maven settings.xml configuration
mvn tomcat7:redeploy -Dskip.surefire.tests
- requires maven settings.xml configuration
- Create a docker image:
- Configuration in the Dockerfile
- Image pushed to registry on https://cloud.docker.com/
mvn docker:push
- Integration/System tests:
-
using failsafe maven plugin
-
annotated with junit Category "IntegrationTests"
-
runs during the maven 'verify' phase
mvn failsafe:integration-test
-
- Release
- uploads released version to nexus
- todo: upload released docker image to registry
mvn release:prepare release:perform -B -P releases
Application is based on (with modifications):
http://www.javawebtutor.com/articles/maven/maven_simple_login_application.php
and
https://github.com/LableOrg/java-maven-junit-helloworld/tree/master/src