You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Use the coverage api to count code coverage, and call erase after each data acquisition. The code coverage can be counted for a while. After a while, it is found that the code coverage cannot be counted. When calling the get_data function, it will prompt that the data is not obtained.
Error info:
Coverage.py warning: No data was collected. (no-data-collected)
Hi, sorry you are having trouble. We'll need more information. You haven't said what your main program is doing. Perhaps it's not running any more after some time? Can you provide a reproducible example?
Describe the bug
Use the coverage api to count code coverage, and call erase after each data acquisition. The code coverage can be counted for a while. After a while, it is found that the code coverage cannot be counted. When calling the get_data function, it will prompt that the data is not obtained.
Error info:
Coverage.py warning: No data was collected. (no-data-collected)
Code:
cov = coverage.Coverage(branch=True, data_suffix=True, config_file=".coveragerc", include=[u'/data/ibox/app/cgi/*'])
cov.start()
while True:
time.sleep(report_frequency)
try:
cover.stop()
LOG.log_info("stop coverage")
reporter.report()
except Exception as e:
LOG.log_exception("report data error: %s", e)
cover.erase()
LOG.log_info("start coverage")
cover.start()
LOG.log_info("start coverage")
The text was updated successfully, but these errors were encountered: