จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
KUnitModuleTest
public
class
KUnitModuleTest
extends ExecutableTargetTest
เครื่องมือทดสอบสำหรับการเรียกใช้โมดูลการทดสอบ KUnit ในอุปกรณ์
สรุป
ช่อง
KUNIT_DEBUGFS_PATH
public static final String KUNIT_DEBUGFS_PATH
KUNIT_RESULTS_FMT
public static final String KUNIT_RESULTS_FMT
ตัวสร้างแบบสาธารณะ
KUnitModuleTest
public KUnitModuleTest ()
เมธอดสาธารณะ
findBinary
public String findBinary (String binary)
ค้นหาไบนารีเพื่อเรียกใช้
พารามิเตอร์ |
binary |
String : เส้นทางของไฟล์ไบนารีหรือเพียงแค่ชื่อไฟล์ไบนารี |
คิกรีเทิร์น |
String |
เส้นทางไปยังไบนารี หรือค่าว่างหากไม่พบ |
getCollectTestsOnly
public boolean getCollectTestsOnly ()
runBinary
public void runBinary (String modulePath,
ITestInvocationListener listener,
TestDescription description)
เรียกใช้ไบนารีที่เส้นทางที่ระบุ
พารามิเตอร์ |
modulePath |
String : เส้นทางของไบนารี |
listener |
ITestInvocationListener : ตำแหน่งที่ควรรายงานผลลัพธ์ |
description |
TestDescription : อยู่ระหว่างการทดสอบ |
วิธีการที่มีการป้องกัน
doesRunBinaryGenerateTestResults
protected boolean doesRunBinaryGenerateTestResults ()
getAllTestCommands
protected getAllTestCommands ()
แปลง mBinaryPaths เป็น mTestCommands เพื่อความสอดคล้อง
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-30 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-01-30 UTC"],[],[]]