Ask Your Question
0

what is the easiest way to instrument horizon code?

asked 2013-08-20 17:34:44 -0600

Vishal Rekala gravatar image

updated 2013-08-21 18:00:43 -0600

smaffulli gravatar image

How do I instrument code? I would like to get code coverage for Horizon, what is the easiest way to instrument horizon code?

Thanks!!!!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-08-22 04:51:20 -0600

jpichon gravatar image

Currently you can generate the code coverage report for Horizon by running ./run_tests.sh --coverage. You'll find the reports in the reports directory afterward.

edit flag offensive delete link more

Comments

Thanks jpichon for reply, this code coverage report is generated using unit tests correct? I'm looking for code coverage of my functional tests (Not the unit testing code coverage). To elaborate more, assume QA team executes their tests suites using selenium, manual testing. At the end of the tests, I would like to know the amount of code (target code , not the test code base) got invoked/tested.

Vishal Rekala gravatar imageVishal Rekala ( 2013-08-22 10:58:30 -0600 )edit

Correct, this using the Horizon unit tests. Perhaps looking at how the existing coverage works could help for your use case, e.g. using http://nedbatchelder.com/code/coverage/ with the functional tests you care about.

jpichon gravatar imagejpichon ( 2013-08-23 09:15:42 -0600 )edit

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

2 followers

Stats

Asked: 2013-08-20 17:34:44 -0600

Seen: 80 times

Last updated: Aug 22 '13