اگلااگلا گائیڈ
AI کے ساتھ اپنے نوٹس سے پریکٹس ٹیسٹ بنانا
ایپلی کیشنز
ایپلیکیشن گائیڈ
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 کہانیاں، سادہ انگریزی میں لکھی گئیں۔ ہمیشہ کے لیے مفت، کوئی اشتہار نہیں۔
ہر ہفتے کے دن ایک ای میل۔ ایک کلک میں ان سبسکرائب کریں۔ ہم کبھی بھی آپ کا پتہ فروخت یا شیئر نہیں کرتے۔
اپنے آپ کو جانچیں۔
ہر جواب پر فوری فیڈبیک، اور کورس پاس کرنے کے بعد قابلِ تصدیق ID کے ساتھ شیئر کرنے کے قابل سرٹیفکیٹ۔
مفت AI تعلیم کی حمایت کریں۔ 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.
AI آسانی سے ان پٹ پیدا کر سکتا ہے، لیکن صحیح متوقع نتیجہ (اوریکل) کا تعین کرنے کے لیے اکثر مطلوبہ رویے کے بارے میں انسانی فیصلے کی ضرورت ہوتی ہے۔
کریکٹرائزیشن ٹیسٹ اس بات کی گرفت کرتے ہیں کہ کوڈ اس وقت کس طرح برتاؤ کرتا ہے، غیر ارادی تبدیلیوں کا پتہ لگانے کے لیے حفاظتی جال بناتا ہے، چاہے موجودہ رویے میں کیڑے شامل ہوں۔
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.
LLM ٹولز کوڈ کے سیاق و سباق، دستخطوں اور فراہم کردہ کسی بھی اشارے یا تبصروں کی بنیاد پر ٹوکن کے ذریعے ٹیسٹ کوڈ ٹوکن تیار کرتے ہیں۔
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.
سیکھتے رہیں
اس موضوع کے لیے مزید گائیڈز چنے گئے ہیں۔
اگلااگلا گائیڈ
AI کے ساتھ اپنے نوٹس سے پریکٹس ٹیسٹ بنانا
ایپلی کیشنز