Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 787785

Summary: sys-apps/portage: add unit test option to report profiling results similar to a code coverage report
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: CoreAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=756199
Whiteboard:
Package list:
Runtime testing required: ---

Description Zac Medico gentoo-dev 2021-05-02 20:57:52 UTC
https://pypi.org/project/pytest-profiling/


Since pytest-profiling is only 150 loc, so we might copy pieces into our own test framework rather than dive into pytest:

https://github.com/man-group/pytest-plugins/blob/master/pytest-profiling/pytest_profiling.py
Comment 1 Zac Medico gentoo-dev 2021-05-02 21:06:13 UTC
The fix for bug 756199 should lead to a noticeable difference in profiling data for lib/portage/tests/resolver/test_merge_order.py cases that involve circular dependencies.