Ask Your Question
0

Code Coverage for Glance API

asked 2011-12-05 19:33:28 -0500

ravikumar-venkatesan gravatar image

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

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2011-12-06 19:40:00 -0500

ravikumar-venkatesan gravatar image

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

edit flag offensive delete link more
0

answered 2011-12-06 16:48:37 -0500

jaypipes gravatar image

./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

edit flag offensive delete link more
0

answered 2011-12-06 16:49:21 -0500

jaypipes gravatar image

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-12-05 19:33:28 -0500

Seen: 15 times

Last updated: Dec 06 '11