diff --git a/README.md b/README.md
index 4f2275d061333e1030c22a42c251d7f0c258679b..69bdc9b3ac8aea60f2ed26188b0309798b86e188 100644
--- a/README.md
+++ b/README.md
@@ -270,4 +270,23 @@ When executed, the REST resources can be found in
`http://localhost:8080/jsf/faces/index.html`.
## Sample 6: Additional Testing Tools
-Coming soon...
+### Test coverage with JaCoCo
+Test coverage is a very useful tool that shows the parts of the source code that
+are covered by the tests. The coverage analysis is done during the tests
+execution, making it very precise.
+
+The JaCoCo plugin is now part or the project, analyzing the test execution. This
+plugin generates a HTML report in the `target/site/jacoco` folder. This report
+is very useful to check if some part of the code is missing some tests.
+
+## Wildfly Deployment
+The Wildfly Maven plugin is now part of the project. This plugin allows the
+automatic deployment of the project in a Wildfly server running with a port
+offset of 1000 (this means that the Wildfly uses the 9080 port as the HTTP port
+and the 10990 as the management port).
+
+The offset of a Wildfly server can be changed using the system property `jboss.socket.binding.port-offset`. For example, starting Wildfly with the
+command:
+```bash
+$WILDFLY_HOME/bin/standalone.sh -Djboss.socket.binding.port-offset=1000
+```
diff --git a/domain/pom.xml b/domain/pom.xml
index 567fa103805667f5e1bacf74d19cd4d7e8e471d5..be0c3121036cf60b809ca3de2ab8416337c78e78 100644
--- a/domain/pom.xml
+++ b/domain/pom.xml
@@ -36,4 +36,13 @@
test
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+
+
+
diff --git a/ear/pom.xml b/ear/pom.xml
index ae65dca33ab5011e657eddccfbfa0a8466e8a0ec..429246c13c634d4a1c0d52333f93b8b081804c59 100644
--- a/ear/pom.xml
+++ b/ear/pom.xml
@@ -47,6 +47,14 @@
true
+
+ org.wildfly.plugins
+ wildfly-maven-plugin
+
+ false
+ 10990
+
+
diff --git a/jsf/pom.xml b/jsf/pom.xml
index c6ebde49aaab56b87d9b50e324bf75bebd01cef7..22496daf8949180fe17d3abdcf9f013906359e7f 100644
--- a/jsf/pom.xml
+++ b/jsf/pom.xml
@@ -63,4 +63,13 @@
test
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 84bcdb0687e3adcebf1ad4b650c668b0e37b33c9..9304961d657274efa0b76981dcf9871fb6b27711 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,6 +7,19 @@
pom
Sample
+
+
+
+ deployment
+ Internal Releases
+ http://sing.ei.uvigo.es/dt/nexus/content/repositories/releases/
+
+
+ deployment
+ Internal SNAPSHOT Releases
+ http://sing.ei.uvigo.es/dt/nexus/content/repositories/snapshots/
+
+
domain
@@ -38,10 +51,12 @@
4.12
2.0.0.0
+ 3.4
+ 0.7.5.201505241946
+ 1.0.0.Alpha8
1.0.0.Alpha7
- 5.1.21
1.5.10
- 3.4
+ 5.1.21
3.0.13.Final
2.1.0.Alpha3
@@ -149,6 +164,16 @@
${graphene.webdrive.version}
pom
+
+ org.jboss.arquillian.extension
+ arquillian-jacoco
+ ${arquillian.jacoco.version}
+
+
+ org.jacoco
+ org.jacoco.core
+ ${jacoco.version}
+
mysql
mysql-connector-java
@@ -183,6 +208,15 @@
+
+
+ org.apache.maven.plugins
+ maven-deploy-plugin
+
+ true
+
+
+
@@ -204,12 +238,54 @@
org.wildfly.plugins
wildfly-maven-plugin
${wildfly.maven.plugin.version}
+
+
+ true
+
org.apache.maven.plugins
maven-ear-plugin
${maven.ear.plugin}
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+ ${session.executionRootDirectory}/target/classes
+
+
+
+ pre-unit-test
+
+ prepare-agent
+
+
+
+ post-unit-test
+ test
+
+ report
+
+
+
+ pre-integration-test
+ pre-integration-test
+
+ prepare-agent
+
+
+
+ post-integration-test
+ post-integration-test
+
+ report
+
+
+
+
@@ -329,7 +405,7 @@
maven-resources-plugin
- copy-mysql-ds
+ copy-wildfly-resources
process-test-classes
copy-resources
@@ -448,7 +524,7 @@
maven-resources-plugin
- copy-mysql-ds
+ copy-wildfly-resources
process-test-classes
copy-resources
diff --git a/rest/pom.xml b/rest/pom.xml
index 51fbe203b7036f6c9d0cafc2e31e7a572d91cf5b..307dfd77a995f238b66aef8cd3abdfe78bc67441 100644
--- a/rest/pom.xml
+++ b/rest/pom.xml
@@ -67,4 +67,13 @@
test
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+
+
+
\ No newline at end of file
diff --git a/service/pom.xml b/service/pom.xml
index 65877b21349ac91367b64c58f3139e66dedbc4b2..1479b2b1c0c34fe86ec8381608479641284053c0 100644
--- a/service/pom.xml
+++ b/service/pom.xml
@@ -56,4 +56,13 @@
test
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+
+
+
\ No newline at end of file