runs first time directly in prod and sometimes fails.
In QA, those use cases never satisfies and those lines were never executed in QA.
I want to use/create tool, which will track if any lines of python code never executed in its QA lifetime.
Can GenAI be used here?
Any suggestions.
Why not just rely on code coverage?
Yes, want to automate it. Idea is, create tracker, in whole QA lifetime, which code not executed. This will force developer/qa to create exhaustive test cases
https://stackoverflow.com/questions/50209123/python-detect-code-which-gets-never-executed-in-production
If you use AWS, you can try to instrument your code using AWS X-Ray and let it record code activity for 1 month. After 1 month, trace your X-Ray record to figure out which code/function that was never executed: https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-python.html
Обсуждают сегодня