pytest-coverage

द्वारा github

pytest को कवरेज रिपोर्टिंग के साथ चलाएं ताकि अप्रयुक्त कोड लाइनों की पहचान कर उन्हें हटाया जा सके। cov_annotate/ निर्देशिका में एनोटेटेड स्रोत फ़ाइलें उत्पन्न करता है, जिसमें ! चिह्न अनकवर्ड लाइनों को दर्शाते हैं। --cov=module_name के माध्यम से मॉड्यूल-विशिष्ट कवरेज जांच और विशिष्ट टेस्ट फ़ाइलों पर लक्षित टेस्ट रन का समर्थन करता है। कार्यप्रवाह: कवरेज चलाएं, अनकवर्ड लाइनों के लिए एनोटेटेड

npx skills add https://github.com/github/awesome-copilot --skill pytest-coverage

The goal is for the tests to cover all lines of code.

Generate a coverage report with:

pytest --cov --cov-report=annotate:cov_annotate

If you are checking for coverage of a specific module, you can specify it like this:

pytest --cov=your_module_name --cov-report=annotate:cov_annotate

You can also specify specific tests to run, for example:

pytest tests/test_your_module.py --cov=your_module_name --cov-report=annotate:cov_annotate

Open the cov_annotate directory to view the annotated source code. There will be one file per source file. If a file has 100% source coverage, it means all lines are covered by tests, so you do not need to open the file.

For each file that has less than 100% test coverage, find the matching file in cov_annotate and review the file.

If a line starts with a ! (exclamation mark), it means that the line is not covered by tests. Add tests to cover the missing lines.

Keep running the tests and improving coverage until all lines are covered.

github की और Skills

debugging-workflows
github
GitHub एजेंटिक वर्कफ़्लो को डीबग करने के लिए गाइड - लॉग का विश्लेषण, रन का ऑडिट, और समस्याओं का समाधान
go-codemod
github
gh aw fix कमांड के लिए Go कोडमॉड को लागू और परीक्षण करें।
acreadiness-policy
github
उपयोगकर्ता को AgentRC नीति चुनने, लिखने या लागू करने में सहायता करें। नीतियाँ अप्रासंगिक जाँचों को अक्षम करके, प्रभाव/स्तर को ओवरराइड करके, सेट करके तत्परता स्कोरिंग को अनुकूलित करती हैं…
ai-ready
github
किसी भी रिपॉजिटरी को AI-तैयार बनाएं — आपके कोडबेस का विश्लेषण करता है और AGENTS.md, copilot-instructions.md, CI वर्कफ़्लो, इश्यू टेम्पलेट और अधिक जनरेट करता है। आपकी PR समीक्षा को माइन करता है…
create-oo-component-documentation
github
वस्तु-उन्मुख घटकों के लिए उद्योग की सर्वोत्तम प्रथाओं और वास्तुकला दस्तावेज़ीकरण मानकों का पालन करते हुए व्यापक, मानकीकृत दस्तावेज़ीकरण तैयार करें।
dependabot
github
Dependabot GitHub का अंतर्निहित निर्भरता प्रबंधन उपकरण है जिसमें तीन मुख्य क्षमताएँ हैं:
doublecheck
github
AI आउटपुट के लिए तीन-स्तरीय सत्यापन पाइपलाइन। सत्यापन योग्य दावों को निकालता है, वेब खोज के माध्यम से समर्थन या विरोधाभासी स्रोत ढूंढता है, प्रतिकूल समीक्षा चलाता है…
foundry-agent-sync
github
Azure AI Foundry में REST API के माध्यम से स्थानीय JSON मैनिफेस्ट से प्रॉम्प्ट-आधारित AI एजेंट बनाएं और सिंक्रोनाइज़ करें। स्कैफोल्डिंग कौशल के विपरीत जो केवल…