Built-in test runner

odin test

ในระบบนิเวศ Odin

อัปเดตล่าสุด

อ่านต่อในระบบนิเวศ

ภาพรวม

รัน procedure ที่กำหนดเป็น test ด้วยเครื่องมือของ Odin

ความเป็นมา

คำสั่ง odin test ใช้ package testing กับ annotation ของภาษาเพื่อรันชุดทดสอบ เครดิตโลโก้: Odin artwork contributors; CC-BY-SA-4.0; https://github.com/odin-lang/artwork/blob/5f887a73f3cc5a4b61971ec15854ae456b886426/LICENSE; ต้นฉบับ https://raw.githubusercontent.com/odin-lang/artwork/5f887a73f3cc5a4b61971ec15854ae456b886426/logo/emblem-260.png; จัดขนาดเป็น PNG และเพิ่มพื้นที่ว่างโดยคงสีและสัดส่วนเดิม ใช้เครื่องหมาย Odin ระบุระบบนิเวศ ไม่ได้อ้างว่า odin test มีโลโก้แยก

เหมาะกับงานแบบไหน

unit test และ regression test ของ package Odin

ข้อควรชั่งน้ำหนัก

จัด allocator/context และ cleanup ของ test แยกจากโปรแกรมจริง ไม่ใช้ unit test แทนการตรวจ native integration