-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle 6.3 rc 4 No tests found for given includes #12618
Comments
@gtach2o do you have a reproducible example of this? This works for me (using Gradle 6.3-rc-4 on macOS):
|
@big-guy Yes, here https://github.com/gtach2o/gradle-sample
|
The issue comes from using the While you set it on the While we could definitely improve the error message when we are failing, if you add the flag as follows, then everything works as expected:
Can you confirm this? |
@ljacomet Yes, it works! Thank you! |
Great, thanks for being reactive. |
have you already opened an issue for improving error messages in those respect? |
First thanks to @ljacomet. I wasted a lot of time to figure out how to make my tests run
|
Hi @Mayhem50 , unfortunately that also did not work :( Can you share how your kotlin DSL files look like?
|
I was not able to replicate this on a newly created project (Android project) with a non-android module (Kotlin module). What fixes it for me is to downgrade junit 4.13.2 down to 4.12. When I created a new Android project and ran a simple test on non-android module, all tests are found and was able to run. I notice the junit version used on this project was 4.12 and most importantly, the test should be residing in |
How should i make this @test to execute and print the output. any help is much appreciated build.gradle file looks like thisplugins { group 'org.example' repositories { dependencies {
} test { package Sample_tests; import org.testng.annotations.Test; public class FirstTest {
}This is my first time using mac and intelliJIDEA and gradle. I just right clicked on the class file and clicked on "Run 'FirstTest'" option and i am getting the below error. Execution failed for task ':test'.
i am using JDK 8.The contents of my bash_profile looks like aliase commands to enable easy setting of JDK versionalias setJDK11='export JAVA_HOME=$(/usr/libexec/java_home -v 1.11)'alias setJDK8='export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)'set to the default JDKexport JAVA_HOME=(/usr/libexec/java_home -v 1.8) export JAVA_HOME="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home"export ANDROID_HOME=\”/Users/sbhaskaruni/Library/Android/sdk\”export PATH=$PATH:$ANDROID_HOME/platform-toolsThe contents of .zshrc file looks like |
@swapnabhaskaruni This is really a usage question that should be asked elsewhere. You are most likely hitting an assumption that a filter starting with a capital letter is for a |
I have integration-tests module first
and when I try to run a test
my build.gradle.kts
|
Hi!
I'm trying to execute JUnit test but getting an error:
Expected Behavior
after run
./gradlew test --tests com.some.package.TestClass
test should be executed (it works on 6.2.2 JDK 13)
Current Behavior
after run
./gradlew test --tests com.some.package.TestClass
getting error:
No tests found for given includes: [com.some.package.TestClass](--tests filter)
Context
Migration from JDK 13 to JDK 14
Steps to Reproduce
Create JUnit 5 test
Execute via cli
Your Environment
JDK 14
Gradle 6.3 rc4
implementation "org.junit.jupiter:junit-jupiter-engine:5.6.1"
implementation "org.junit.jupiter:junit-jupiter-api:5.6.1"
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.6.1"
stacktrace
The text was updated successfully, but these errors were encountered: