A course project concerning Test Driven Development and other useful tools. In Java.
-
Docker
-
Docker Compose
-
Maven
-
Java 8
-
We recommend to run the build on a virtual screen in isolation avoiding making the PC useless for 5 minutes, by following this commands:
sudo apt-get install -y tightvncserver
and then:
./onVirtualScreen.sh mvn clean test verify
-
Start the test with:
mvn clean test verify
-
To include the PIT:
mvn clean test verify -P run-PIT
-
If you want run the tests in SonarQube, exec the second docker-compose:
docker-compose -f docker-compose-sonar.yml up
and then:
mvn clean test verify sonar:sonar
-
Run the command:
docker-compose up
Will be started Postgres DB and a volumes attached to it, to make the data persistence.
-
Now you can launch AppIchetto with:
java -jar aggregator-module/target/aggregator-module-0.0.1-SNAPSHOT-jar-with-dependencies.jar
-
To stop Postgres DB run:
docker-compose down #add --volumes to delete all data