Merge pull request #5860 from cortinico/master

chore: remove example unit/instrumentation tests
This commit is contained in:
Bnyro 2024-04-03 10:19:06 +02:00 committed by GitHub
commit ff7de41ad1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 42 deletions

View File

@ -107,10 +107,6 @@ dependencies {
implementation(libs.lifecycle.livedata)
implementation(libs.lifecycle.service)
/* Testing */
androidTestImplementation(libs.androidx.test.junit)
androidTestImplementation(libs.androidx.test.espressoCore)
/* Design */
implementation(libs.material)

View File

@ -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)
}
}

View File

@ -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)
}
}