title: Can we run Spock Testcases and Junit 5 test cases together In one project?
body: <p>We are not able to run test cases written with <strong>Junit 5</strong> and <strong>Spock framework</strong> together in one <strong>gardle project</strong>? </p>
  
  <p>We tried add dependencies given in <a href="https://www.baeldung.com/junit-5-gradle" rel="nofollow noreferrer">https://www.baeldung.com/junit-5-gradle</a> to our gradle file. Gradle version is 4.10.3 and Junit 5. Below is my build.gradle file</p>
  
  <pre class="lang-groovy prettyprint-override"><code>apply plugin: 'groovy'
  apply plugin: 'java'
  
  repositories {
    mavenCentral()
    maven {
      url "http://repo.fusesource.com/nexus/content/groups/public/"
    }
    maven {
      url "https://repository.jboss.org/nexus/content/groups/public"
    }
    jcenter()
  }
  
  dependencies {
  
    compile group: 'com.google.inject', name: 'guice', version: '4.2.2'
    compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.0.1'
  
    testCompile(
      'org.codehaus.groovy:groovy-all:2.4.8',
      'org.spockframework:spock-core:1.0-groovy-2.4',
      'org.jmockit:jmockit:1.8',
      'junit:junit:4.12'
    )
    testRuntime(
      'cglib:cglib:2.2.2',
      'com.athaydes:spock-reports:1.2.7'
    )
  
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
  
    testCompileOnly 'junit:junit:4.12'
  
  }
  
  test {
    useJUnitPlatform()
    testLogging { showStandardStreams = true }
  }
  </code></pre>
  
  <p>I have created two test cases, one is using spock framework and other is using junit 5. But when I do gradlew -test, it runs only test cases written with Junit 5. Below is build path.</p>
  
  <p><a href="https://i.stack.imgur.com/wPmn4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wPmn4.jpg" alt="enter image description here"></a></p>