Code Coverage for Glance API

Asked by Ravikumar Venkatesan on 2011-12-05

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:
2011-12-06
Last query:
2011-12-06
Last reply:
2011-12-06
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

Jay Pipes (jaypipes) said : #2

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

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