आगेअगली गाइड
एआई के साथ अपने नोट्स से अभ्यास परीक्षण बनाना
अनुप्रयोग
एप्लीकेशन गाइड
AI test-generation tools propose test cases or test code, but a test still needs a trustworthy oracle: a way to determine the correct outcome.
इस गाइड को सुनेंएआई-नैरेटेड · ~1 min
Test generation techniques have different goals. A test oracle supplies the expected result; characterization tests record current behavior and can preserve bugs if the behavior is wrong. The TestPilot paper evaluates an LLM-based JavaScript test generator across 25 npm packages and reports median statement coverage of 70.2% and branch coverage of 52.8%; these are study-specific figures. Coverage-guided fuzzing uses execution feedback such as newly reached branches to guide inputs. Mutation testing challenges a test suite with small deliberate program changes and checks whether assertions detect them. Review generated tests before treating their assertions as specifications.
Generate boundary cases for a function and review expected results.
Use characterization tests to capture behavior before a refactor, then inspect whether it is intended.
Run coverage-guided fuzzing to explore new execution paths.
Review generated tests for assertions that detect real regressions.
AI-generated tests can broaden candidate coverage, but human or formal review should validate expected behavior and avoid overfitting tests to an implementation.
मुफ़्त न्यूज़लेटर
हर कार्यदिवस की सुबह तीन सत्यापित एआई कहानियाँ, सादे अंग्रेजी में लिखी गईं। हमेशा के लिए मुफ़्त, कोई विज्ञापन नहीं।
प्रत्येक सप्ताह के दिन एक ईमेल. एक क्लिक में सदस्यता समाप्त करें. हम आपका पता कभी नहीं बेचते या साझा नहीं करते।
स्वयं की जांच करो
प्रत्येक उत्तर पर त्वरित प्रतिक्रिया, और पाठ्यक्रम पास करने के बाद एक सत्यापन योग्य आईडी के साथ एक साझा करने योग्य प्रमाणपत्र।
निःशुल्क एआई शिक्षा का समर्थन करें। AI Understanding एक 501(c)(3) गैर-लाभकारी संस्था है - कोई विज्ञापन नहीं, कोई पेवॉल नहीं। दान करें
AI test-generation tools propose test cases or test code, but a test still needs a trustworthy oracle: a way to determine the correct outcome.
एआई आसानी से इनपुट उत्पन्न कर सकता है, लेकिन सही अपेक्षित परिणाम (ओरेकल) का निर्धारण करने के लिए अक्सर इच्छित व्यवहार के बारे में मानवीय निर्णय की आवश्यकता होती है।
लक्षण वर्णन परीक्षण यह पकड़ते हैं कि कोड अभी कैसे व्यवहार करता है, अनपेक्षित परिवर्तनों का पता लगाने के लिए एक सुरक्षा जाल बनाता है, भले ही वर्तमान व्यवहार में बग शामिल हों।
The TestPilot paper implements its approach for JavaScript and evaluates it on npm packages. This is the scope of that study, not a claim that LLM test generation only works in JavaScript.
एलएलएम उपकरण कोड संदर्भ, हस्ताक्षर और दिए गए किसी भी संकेत या टिप्पणी के आधार पर टोकन द्वारा परीक्षण कोड टोकन उत्पन्न करते हैं।
The authors report median statement coverage of 70.2% and median branch coverage of 52.8% on their evaluation set of 25 npm packages. These are study-specific results, not a general guarantee.
सीखते रहो
इस विषय के लिए अधिक मार्गदर्शिकाएँ चुनी गईं
आगेअगली गाइड
एआई के साथ अपने नोट्स से अभ्यास परीक्षण बनाना
अनुप्रयोग