Skip to content

Commit

Permalink
Merge pull request #947 from wordpress-mobile/remove-xamarin-testcloud
Browse files Browse the repository at this point in the history
Remove xamarin.testcloud library
  • Loading branch information
oguzkocer authored Dec 13, 2021
2 parents 2878796 + df70ff9 commit c4fc5a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,4 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation('com.xamarin.testcloud:espresso-support:1.3')
}
22 changes: 2 additions & 20 deletions app/src/androidTest/kotlin/org/wordpress/aztec/demo/BaseTest.kt
Original file line number Diff line number Diff line change
@@ -1,39 +1,21 @@
package org.wordpress.aztec.demo

import android.util.Log
import androidx.test.rule.GrantPermissionRule
import androidx.test.runner.AndroidJUnit4
import com.xamarin.testcloud.espresso.Factory
import com.xamarin.testcloud.espresso.ReportHelper
import org.junit.Before
import org.junit.Rule
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
abstract class BaseTest {

@Rule
@JvmField
val mReportHelper: ReportHelper = Factory.getReportHelper()

@Rule
@JvmField
val grantPermissionRule: GrantPermissionRule = GrantPermissionRule.grant(android.Manifest.permission.CAMERA,
android.Manifest.permission.WRITE_EXTERNAL_STORAGE)

companion object {
private lateinit var reportHelper: ReportHelper

fun label(label: String) {
reportHelper.label(label)
Log.d("BaseTest", label)
}
}

init {
BaseTest.reportHelper = mReportHelper
}

@Before
fun SetUp() {
reportHelper.label("Starting App")
}
}

0 comments on commit c4fc5a2

Please sign in to comment.