mutation-testing
यह क्या करती है
यह स्किल mutation testing सेट करती और उसकी समीक्षा करती है, जो कोड में छोटे बदलाव करके देखती है कि टेस्ट फ़ेल होते हैं या नहीं। यह उन डेवलपर्स के लिए है जो जानना चाहते हैं कि उनके महत्वपूर्ण लॉजिक पर टेस्ट मज़बूत हैं या नहीं।
कब इस्तेमाल करें
- ✓जब आप एजेंट से जाँचवाना चाहते हैं कि आपके टेस्ट असली बग पकड़ेंगे या नहीं।
- ✓जब coverage के आँकड़े ऊँचे हों पर आपको शक हो कि टेस्ट सार्थक नतीजे जाँचते हैं।
- ✓जब आप टेस्ट सुधार को बिज़नेस लॉजिक के एक ज़रूरी मॉड्यूल पर केंद्रित करना चाहते हैं।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/mutation-testing/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे कोड में टेस्ट coverage ऊँचा है, पर मुझे यकीन नहीं कि टेस्ट असली बग पकड़ते हैं। क्या आप mutation testing सेट कर सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट एक मॉड्यूल के लिए Stryker कॉन्फ़िगर करता है, उसे चलाकर छोटे बदलाव डालता है, और उन बदलावों की सूची देता है जो टेस्ट से छूट गए। फिर वह टेस्ट इस तरह सुधारता है कि वे बदलाव पकड़े जाएँ।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Use mutation testing to measure how well tests detect bugs
A codebase can have 90% line coverage and still ship critical bugs if tests only execute code without asserting meaningful outcomes. Mutation testing reveals these gaps by proving that your tests can distinguish correct code from subtly broken code — the standard that actually matters in production.
Quick Reference
- Code coverage tells you which lines were executed; mutation score tells you which bugs were caught
- Stryker injects small code changes (mutations) and checks whether tests fail — if they don't, the tests are weak
- Aim for 80%+ mutation score on critical business logic paths
- Run Stryker on a focused scope (one module) rather than the whole codebase to keep CI times manageable
Check
Assess whether this module has mutation testing configured and whether the mutation score on critical paths meets the project's quality threshold.
Fix
Set up Stryker for this module, run an initial mutation report, and improve tests to kill surviving mutants in the critical business logic paths.
Explain
Explain what mutation testing is, how Stryker works, and why mutation score is a more meaningful quality signal than code coverage alone.
Code Review
Review the Stryker configuration and mutation report to identify surviving mutants in critical code paths, and suggest test improvements to kill them.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/testing/mutation-testing
अक्सर पूछे जाने वाले सवाल
mutation score coverage से कैसे अलग है?
coverage बताता है कि कौन-सी लाइनें चलीं, जबकि mutation score बताता है कि टेस्ट ने असल में कौन-से बग पकड़े।
एक समय में सिर्फ़ एक मॉड्यूल क्यों?
स्किल एक केंद्रित दायरे की सलाह देती है, ताकि CI रन का समय नियंत्रित रहे।
मुझे कौन-सा स्कोर लक्ष्य रखना चाहिए?
स्किल महत्वपूर्ण बिज़नेस लॉजिक के रास्तों पर 80 प्रतिशत या उससे ऊपर का लक्ष्य सुझाती है।
जानकारी
लेखक का मूल विवरण
Use when evaluating test quality on modules containing business logic, calculation utilities, or state machines to determine whether the tests provide genuine defect detection.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #2945
- लाइसेंस
- MIT
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
frontendchecklist
75kकमांड-लाइन टूल से फ़्रंटएंड कोड और लाइव पेजों को एक्सेसिबिलिटी, स्पीड, SEO और सिक्योरिटी के 380 से ज़्यादा नियमों से जाँचती है।
frontend-checklist-global
75kफ़्रंटएंड प्रोजेक्ट को Front-End Checklist के सभी 386 नियमों से ऑडिट करती है, और हर मिली समस्या का ठोस समाधान देती है।
404-page
75kजाँचती है कि आपका गुम पेज उपयोगी लिंक देता है और सही 404 स्टेटस लौटाता है, ताकि भटके हुए विज़िटर रास्ता ढूँढ सकें।
about-page
75kजाँचती है कि आपकी साइट पर एक साफ़ About पेज है जो बताता है कि उसे कौन चलाता है, ताकि विज़िटर और सर्च इंजन का भरोसा बढ़े।
मिलती-जुलती skills
test-driven-development
311kयह आपके एजेंट को किसी भी फ़ीचर या सुधार से पहले पहले असफल होने वाला टेस्ट लिखना, उसे असफल होते देखना, फिर पास करने वाला सबसे छोटा कोड लिखना सिखाती है।
verification-before-completion
311kयह आपके एजेंट को किसी काम, सुधार या build के पूरा या पास होने का दावा करने से पहले असली जांच चलाकर उसका आउटपुट पढ़ना सिखाती है।
migrate-to-shoehorn
310kआपकी टेस्ट फ़ाइलों में जोखिम भरे type casts की जगह shoehorn लाइब्रेरी लगाती है, ताकि टेस्ट अधूरे डेटा से भी type checks पास कर सकें।