Download and copy wildfly 10.1.0.Final to wildfly
folder.
Install mysql connector like described here:
http://rafiqnayan.blogspot.de/2016/05/how-to-configure-wildfly-10-to-use-mysql.html
Configure database as java:jboss/datasources/MYSQL
in your standalone.xml
.
Configure database in src/test/resources/META-INF/persistence.xml
.
mvn clean test -Pit,coverage
In order to start wildfly only once for all tests, take a look here: https://gist.github.com/aslakknutsen/3975179