chetanmeh commented on issue #3243: Collect test code coverage data
URL: 
https://github.com/apache/incubator-openwhisk/issues/3243#issuecomment-363160950
 
 
   ### Code coverage and Docker execution
   
   For capturing coverage stats for tests which hit the controller and invoker 
docker containers we would need following changes
   
   1. Include the scoverage jars in the docker container and launch script 
classpath
   2. Include the instrumented jars for controller and invoker and ensure that 
they come before in classpath
   3. Provide a writable mount to `<openwhisk>/core/controller/build/scoverage` 
directory (+ for invoker) such that measurement files can be written. The 
volume mapping should point to different directory on filesystem as scoverage 
uses thread id for making measurement file. As the measurement is being written 
from threads in different vm the ids may collide.
   
   This can possibly be done by producing 2 extra containers which extend the 
main containers and have been customized for coverage. Further the ansible 
scripts would need to pick these containers

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to