Tool

Gralde – Unit test

Buil test configuration app > build.gradle 환경 파일을 아래와 같이 수정한다. instrumentTest.setRoot(‘tests’)라는 거. android { … sourceSets { main { jniLibs.srcDirs = [‘libs’, ‘src/main/libs’] jni.srcDirs = [] } instrumentTest.setRoot(‘tests’) debug.setRoot(‘build-types/debug’) release.setRoot(‘build-types/release’) } … } ##Unit test example file public class ExampleUnitTest { … @Test public void addTest() throws Exception { assertEquals(4, 2 + 2); } […]

Read More
Back To Top