| Summary: | Code coverage: add ability to create missing 'coverage area' reports | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Benjamin Esquivel <benjamin.esquivel> |
| Component: | Scripts and Tools | Assignee: | Unassigned <unassigned> |
| Status: | RESOLVED OBSOLETE | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Medium | CC: | joshuagloe, leonardo.sandoval.gonzalez, mhalstead, richard.purdie, ross.burton |
| Version: | 5.99 | ||
| Target Milestone: | Future | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | QA REVIEW | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Benjamin Esquivel
2016-01-13 22:54:53 UTC
Currently, python coverage module is being used to measure code execution. The code granularity AFAIK is a module (a complete file) and not a function. With this in mind, we should do some post-processing on annotated code (coverage's annotated code) to get the functions and then the counting of executed, excluded and missing lines. This is low priority for 2.3 and there is no window time to work on this area during current release. As this issue got assigned to me I'd like to know why do we need this and is this functionality can be implemented using python-coverage? (In reply to comment #3) > As this issue got assigned to me I'd like to know why do we need this and is > this functionality can be implemented using python-coverage? I moved to 2.4 and for some reason it got assigned to you. For your question, oe-selftest is already using python-coverage (version 4.x), so we can produce data. The main task here is the analysis of this data. No plans to do the later during 2.3 I believe we are doing this via the resulttool. I don't believe we ever figured out correct tools for code coverage or that they are practical with the system. If anyone ever does want to do this that is fine however we have other areas QA work would likely be focused on, marking as obsolete, can be reopened if anyone is willing to progress this. |