Code coverage on microservices architecture

39 views
Skip to first unread message

Federico Sorenson

unread,
Aug 31, 2016, 9:03:29 AM8/31/16
to JaCoCo and EclEmma Users
Hi!

We have a special case of usage. We have unit and integration test per micro-service. Up to here, is all working fine, JaCoCo generates reports and we can import them into sonar and all works fine. The problem is that we have another application that deploys the micro-services into docker machines (all with maven) and then it runs another suite of test that checks that all services in orchestration are working properly. The problem comes when we want to have also coverage of each service that, in this time, is running inside of a docker machine. 

We thought on using the server-client modes of JaCoCo for solving this issue, but as long as all services run with the surefire and failsafe plugins, those will run the docker-maven-plugin with the argline configured that then will be provided to each running instance (inside of the docker). This leads to the same configuration (all of JaCoCo's agents are now server, none is client).

Any advice on how to configure JaCoCo with this architecture? 

Thanks!
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages