mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
Merge pull request #5860 from cortinico/master
chore: remove example unit/instrumentation tests
This commit is contained in:
commit
ff7de41ad1
@ -107,10 +107,6 @@ dependencies {
|
|||||||
implementation(libs.lifecycle.livedata)
|
implementation(libs.lifecycle.livedata)
|
||||||
implementation(libs.lifecycle.service)
|
implementation(libs.lifecycle.service)
|
||||||
|
|
||||||
/* Testing */
|
|
||||||
androidTestImplementation(libs.androidx.test.junit)
|
|
||||||
androidTestImplementation(libs.androidx.test.espressoCore)
|
|
||||||
|
|
||||||
/* Design */
|
/* Design */
|
||||||
implementation(libs.material)
|
implementation(libs.material)
|
||||||
|
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
package com.github.libretube
|
|
||||||
|
|
||||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
|
||||||
import androidx.test.platform.app.InstrumentationRegistry
|
|
||||||
import org.junit.Assert.assertEquals
|
|
||||||
import org.junit.Test
|
|
||||||
import org.junit.runner.RunWith
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Instrumented test, which will execute on an Android device.
|
|
||||||
*
|
|
||||||
* See [testing documentation](http://d.android.com/tools/testing).
|
|
||||||
*/
|
|
||||||
@RunWith(AndroidJUnit4::class)
|
|
||||||
class ExampleInstrumentedTest {
|
|
||||||
@Test
|
|
||||||
fun useAppContext() {
|
|
||||||
// Context of the app under test.
|
|
||||||
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
|
|
||||||
assertEquals("com.github.libretube", appContext.packageName)
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
package com.github.libretube
|
|
||||||
|
|
||||||
import org.junit.Assert.assertEquals
|
|
||||||
import org.junit.Test
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Example local unit test, which will execute on the development machine (host).
|
|
||||||
*
|
|
||||||
* See [testing documentation](http://d.android.com/tools/testing).
|
|
||||||
*/
|
|
||||||
class ExampleUnitTest {
|
|
||||||
@Test
|
|
||||||
fun addition_isCorrect() {
|
|
||||||
assertEquals(4, 2 + 2)
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user