android studio使用junit單元測試及獲取代碼覆蓋率

1.背景 android studio下經常使用的單元測試類型有 Android Junit和 Android Instrumented Tests等,這裏說下前者。 Android Junit僅需jvm,運行在本地,無需android設備或者模擬器;在較新的AS版本中建立項目,會自動生成兩個測試目錄:androidTest和test,通常在test中放junit的測試代碼,androidTest
相關文章
相關標籤/搜索