Code Coverage for Glance API

Asked by Ravikumar Venkatesan

I do not see code coverage option (like -c ) in ./run_tests.sh file for Glance .
Is there any other way to run code coverage for Glance

Question information

Language:
English Edit question
Status:
Solved
For:
Glance Edit question
Assignee:
No assignee Edit question
Solved by:
Jay Pipes
Solved:
Last query:
Last reply:
Revision history for this message
Best Jay Pipes (jaypipes) said :
#1

./run_tests.sh -V --unittests-only --with-coverage --cover-include=glance --cover-html

The above should work and produce a directory in the root project that contains an html output for coverage.

Cheers!
-jay

Revision history for this message
Jay Pipes (jaypipes) said :
#2

Sorry, --cover-include=glance should be --cover-package=glance

Revision history for this message
Ravikumar Venkatesan (ravikumar-venkatesan) said :
#3

Updated as per Jay
./run_tests.sh -V --unittests-only --with-coverage --cover-package=glance --cover-html