소스 검색

removed jacoco

Daniel Zlotin 8 년 전
부모
커밋
0d2a3cc08a
2개의 변경된 파일1개의 추가작업 그리고 38개의 파일을 삭제
  1. 1
    19
      lib/android/app/build.gradle
  2. 0
    19
      scripts/start.js

+ 1
- 19
lib/android/app/build.gradle 파일 보기

@@ -1,6 +1,5 @@
1 1
 apply plugin: 'com.android.library'
2 2
 apply from: '../prepare-robolectric.gradle'
3
-apply plugin: 'jacoco'
4 3
 
5 4
 android {
6 5
     compileSdkVersion 25
@@ -48,24 +47,7 @@ android {
48 47
     }
49 48
 }
50 49
 
51
-task unitTest(type: JacocoReport, dependsOn: 'testDebugUnitTest') {
52
-    reports {
53
-        xml.enabled = false
54
-        html.enabled = true
55
-    }
56
-
57
-    def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
58
-    def debugTree = fileTree(dir: "${buildDir}/intermediates/classes/debug", excludes: fileFilter)
59
-    def mainSrc = "${project.projectDir}/src/main/java"
60
-
61
-    sourceDirectories = files([mainSrc])
62
-    classDirectories = files([debugTree])
63
-    executionData = files("${buildDir}/jacoco/testDebugUnitTest.exec")
64
-
65
-    doLast {
66
-        println "See code coverage at file://${jacoco.reportsDir}/unitTest/html/index.html"
67
-    }
68
-}
50
+task unitTest(dependsOn: 'testDebugUnitTest') {}
69 51
 
70 52
 dependencies {
71 53
     compile fileTree(include: ['*.jar'], dir: 'libs')

+ 0
- 19
scripts/start.js 파일 보기

@@ -8,22 +8,3 @@ function run() {
8 8
   exec.execSync(`adb reverse tcp:8081 tcp:8081 || true`);
9 9
   exec.execSync(`node ./node_modules/react-native/local-cli/cli.js start --root=./playground`);
10 10
 }
11
-
12
-// function findPort() {
13
-//   let port = 8081;
14
-//   if (!process.env.CI) {
15
-//     return port;
16
-//   }
17
-//   while (!isPortOpen(port)) {
18
-//     port = Number((Math.random() * 1000).toFixed(0)) + 35000;
19
-//   }
20
-//   return port;
21
-// }
22
-
23
-// function isPortOpen(port) {
24
-//   try {
25
-//     return !exec.execSyncRead(`netstat -vanp tcp | grep ${port}`);
26
-//   } catch (e) {
27
-//     return true;
28
-//   }
29
-// }