Hi,

I'm having trouble excluding a test, and I was hoping somebody could help
me.

I have 2 projects: A and B. B has a 'testCompile' dependency on A. A has a
SpringTestSuite class in main/ and B has a BTestSuite class in test/.
Initially, I configured B's 'test' task to look like this:

test {
  include '**/*TestSuite.class'
}

Gradle ran SpringTestSuite from A too. So I tried

test {
  scanForTestClasses = false
  include '**/*TestSuite.class'
  exclude '**/SpringTestSuite.class'
}

That didn't help. Next I tried

test {
  scanForTestClasses = false
  include '**/*TestSuite.class'
  exclude '**/*'
}

No tests ran (as expected). Next I tried

test {
  scanForTestClasses = false
  include '**/*TestSuite.class'
  exclude '**/*Spring*'
}

and Gradle ran SpringTestSuite again.

How do I tell Gradle not to run SpringTestSuite?

Thanks!


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/test-scanForTestClasses-includes-excludes-don-t-work-properly-tp4851233p4851233.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to