Python automation code coverage for Robot test cases

140 views
Skip to first unread message

Kanika Jain

unread,
Jan 27, 2022, 9:17:31 AM1/27/22
to robotframework-users
Hi,

We have automation suites in the robot framework with python modules. 
The tool for which this automation has been written is also in python. We need to find the code coverage for our scripts. We are not using pytest here. 

We have tried using coverage module from python but it is giving the below error -
venv/lib/python3.9/site-packages/coverage/control.py:768: CoverageWarning: No data was collected. (no-data-collected)
  self._warn("No data was collected.", slug="no-data-collected")

Command to run coverage for robot suites - 
coverage run -m --source <path to the tool repo that needs to be tested> robot  <suite name>

Can someone please give some pointers on how to get the automation code coverage? 
Reply all
Reply to author
Forward
0 new messages