diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/CustomPatrolJUnitRunner.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/CustomPatrolJUnitRunner.kt index 35e84ff49..d4855fa2f 100644 --- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/CustomPatrolJUnitRunner.kt +++ b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/CustomPatrolJUnitRunner.kt @@ -15,7 +15,6 @@ class CustomPatrolJUnitRunner : PatrolJUnitRunner() { private var testStorage: TestStorage? = null override fun onCreate(arguments: Bundle) { - // try { // val outputStream = testStorage!!.openOutputFile("patrol_state/teardowns.txt") // } catch (e: FileNotFoundException) { @@ -24,7 +23,7 @@ class CustomPatrolJUnitRunner : PatrolJUnitRunner() { val listeners = listOfNotNull( arguments.getCharSequence("listener"), - PatrolStoragePermissionListener::class.java.name, + PatrolStoragePermissionListener::class.java.name ).joinToString(separator = ",") arguments.putCharSequence("listener", listeners) @@ -45,12 +44,10 @@ class PatrolStoragePermissionListener : RunListener() { override fun testStarted(description: Description) { Logger.d("testStarted with description: $description") - - + val os = testStorage.openOutputFile("patrol.txt", true) os.write("testStarted with description: $description\n".toByteArray()) - InstrumentationRegistry.getInstrumentation().uiAutomation.apply { val testServicesPackage = "androidx.test.services" when {