As well as to how my tests are setup import org.junit.Test import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class) class SettingsTest : BaseTest() { @Test fun testSettings() { ... } Nothing out of the ordinary and the test runner is correct. As said, the tests run fine either without Jacoco or on a lower version On Friday, November 27, 2020 at 8:44:42 AM UTC+1 LethalMaus wrote: > Hi, thanks for the quick response. Below is as much information as I can > give for the moment, if more is needed just ask. > I have also searched everywhere for information about this (and similar > problems which are now resolved) > > > Task :app:connectedDevelopmentDebugAndroidTest > Starting 0 tests on SM-G970F - 10 > Tests on SM-G970F - 10 failed: Instrumentation run failed due to 'Process > crashed.' > > com.android.build.gradle.internal.testing.ConnectedDevice > No tests > found.[SM-G970F - 10] FAILED > No tests found. This usually means that your test classes are not in the > form that your test runner expects (e.g. don't inherit from TestCase or > lack @Test annotations). > > > Task :app:connectedDevelopmentDebugAndroidTest FAILED > > This is the output when bumping the version up. Everything works fine when > the version is 0.8.4 or less. > In case this helps, here is my system setup: > Windows 10 > Java 15 (tried with Java 12 & Java 8 too) > Gradle 6.7 (Tried with 6.6, 6.5 & 6.3) > > In case this helps too, here are parts of my project setup (unfortunately > I can't share everything). It is a single module with different flavors > compileSdkVersion 30 > buildToolsVersion "30.0.0" > ... > buildTypes { > debug { > testCoverageEnabled true > } > } > ... > androidTestImplementation "androidx.test.espresso:espresso-core:3.3.0" > androidTestImplementation "androidx.test.espresso:espresso-contrib:3.3.0" > androidTestImplementation 'androidx.test.espresso:espresso-intents:3.3.0' > androidTestImplementation 'androidx.test.espresso:espresso-web:3.3.0' > androidTestImplementation "androidx.test.ext:junit:1.1.2" > androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0' > androidTestImplementation 'androidx.test:runner:1.3.0' > androidTestImplementation 'com.squareup.okhttp3:mockwebserver:4.9.0' > > As said my tests run fine without Jacoco or on a lower version so it is > definitely related (just may not be the cause) however I have tried a lot > of different things like changing the java version or gradle and even > frameworks within my test code (turns out I was actually using legacy > libraries) but as far as I can see everything is up to date and I tend to > stick to either googles or androids documentation when developing. > On Thursday, November 26, 2020 at 4:47:47 PM UTC+1 Marc R. Hoffmann wrote: > >> Is there any log output or error messages on the console? >> >> On 26. Nov 2020, at 13:46, LethalMaus <descripti...@gmail.com> wrote: >> >> Hi, when I bump up my jacoco version from 0.8.4 to either 0.8.5 or 0.8.6, >> my tests fail to run and it claims to find 'no tests'. Has anyone else >> experienced this before? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "JaCoCo and EclEmma Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to jacoco+un...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jacoco/e62d0c5c-1e87-494d-a804-8b75226931ffn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jacoco/e62d0c5c-1e87-494d-a804-8b75226931ffn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> >> -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/b96eb96f-b843-4060-b433-6d2217567220n%40googlegroups.com.