-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #947 from wordpress-mobile/remove-xamarin-testcloud
Remove xamarin.testcloud library
- Loading branch information
Showing
2 changed files
with
2 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 2 additions & 20 deletions
22
app/src/androidTest/kotlin/org/wordpress/aztec/demo/BaseTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} | ||
} |