Why do my AI-generated tests pass on the bugs they were meant to catch?
โอกาส
AI coding assistants generate unit tests by reading the implementation, so assertions reflect what the code currently does rather than what it should do. A test written against a buggy function learns the bug as a fixture, not a violation. Developers shipping with 90% AI-generated coverage see mutation scores stay flat and real regressions slip through unchanged. The core issue is the oracle problem: there is no ground truth for correct behavior unless you supply it, and AI assistants have no access to the requirements or intent behind the code. Research from July 2025 confirms that LLM-generated tests frequently pass on the exact buggy code they were written against, failing only when the bug is fixed.
ทำไมถึงสำคัญ
A test suite that passes on broken code is worse than no test suite, because it turns the primary quality signal into a false guarantee.
วิธีที่ผมให้คะแนนโอกาส
คะแนนโอกาสเป็นมุมมองส่วนตัวของผม ไม่ใช่การวัดผล โดยดูว่ามันเจ็บปวดแค่ไหน บ่อยแค่ไหนที่มันกัดกิน และมีทางแก้อยู่น้อยเพียงใดในปัจจุบัน คะแนนสูงกว่าหมายความว่าผมคิดว่าคุ้มค่าแก่การสร้างมากกว่า
ความเจ็บปวดที่มันก่อขึ้นเมื่อปรากฏตัว
ความถี่ที่คนจริงๆ เจอมัน
ความขาดแคลนของเครื่องมือที่ดีสำหรับมันในปัจจุบัน
ปัญหาอื่นที่น่าแก้ไข
ทำไมซอฟต์แวร์ที่เราพึ่งพามากที่สุดถึงใช้งานยากที่สุด?
Techทำไมฉันยังไม่เป็นเจ้าของข้อมูลที่ตัวเองสร้างขึ้นมาเลยแม้แต่น้อย?
Techทำไมฉันถึงไม่สามารถรับใบรับรองที่พิสูจน์ได้ว่าข้อมูลของฉันถูกลบออกจริง?
Techทำไมฉันถึงไม่รู้ได้ว่าสิ่งที่กำลังทำงานอยู่ตรงกับสิ่งที่ SBOM ของฉันประกาศไว้หรือไม่
Techทำไมทุกห่วงโซ่พิสูจน์แหล่งที่มาของ C2PA ถึงขาดสะบั้นทันทีที่เนื้อหาเข้าสู่โซเชียลมีเดีย?
Techทำไมฉันถึงย้ายโพสต์ของตัวเองได้ แต่ย้ายโปรไฟล์ที่แพลตฟอร์มสร้างขึ้นจากการสังเกตพฤติกรรมของฉันไม่ได้?