กลับไป เครื่องมือ
ทดสอบเกม

Unity Test Framework

โดย Unity Technologies

แพ็กเกจทดสอบ Unity ที่ใช้ NUnit รันได้ทั้ง Edit Mode, Play Mode และ player บนแพลตฟอร์มเป้าหมาย

tool

ตรวจแพ็กเกจ com.unity.test-framework แล้วเปิด Window > General > Test Runner เพื่อสร้าง Test Assembly Folder เพิ่มการทดสอบกฎเกมและ Play Mode smoke test สำหรับฉากหลัก ตรวจ Platform ใน .asmdef เมื่อต้องรันบน player เพราะ assembly ที่สร้างผ่าน Test Runner ตั้งเป็น Editor โดยค่าเริ่มต้น ผลทดสอบช่วยจับ regression แต่ไม่ยืนยันความสนุกหรือ game feel และควรตรวจข้อจำกัดของ UnityTest ในรุ่นที่ใช้

อ้างอิง: https://docs.unity3d.com/Packages/com.unity.test-framework@1.4/manual/index.html · https://docs.unity3d.com/Packages/com.unity.test-framework@1.4/manual/workflow-create-test-assembly.html

ดูแหล่งที่มา