package GebishOrgTest
import geb.junit4.GebReportingTest
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.experimental.categories.Category
import org.junit.runners.JUnit4
interface FastTest { /* category marker */ }
@RunWith(JUnit4)
class GebishOrgTest extends GebReportingTest {
@Category (FastTest)
@Test
void canGetToTheCurrentBookOfGeb() {
to GebishOrgHomePage
manualsMenu.open()
//first link is for the current manual
assert manualsMenu.links[0].text().startsWith("current")
manualsMenu.links[0].click()
at TheBookOfGebPage
}
}
task useCategory(type: Test) {
useJUnit {
includeCategories 'GebishOrgTest.FastTest'
}
}
excludeCategories
--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/beef3ac1-e1ea-4a7b-a104-0c0dc19e2f54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/30f2643b-189d-41c1-b2f3-4cb1f0bb6cb7%40googlegroups.com.
Can't load category class [com.package.testclass.Database].org.gradle.api.InvalidUserDataException: Can't load category class [com.package.testclass.Database].
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/8d109779-af24-44f7-bf84-9151b75f453c%40googlegroups.com.
test {
useJUnit {
includeCategories 'org.gradle.junit.CategoryA'
}
}test {
useJUnit {
includeCategories 'org.gradle.*.CategoryA'
}
}
I can see where we may have tests with the same Category spread across packages, and just want to execute all those tests regardless of where they reside.
I appreciate all of your help,
LeeTo unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/33f4029e-dc28-4dc5-ae25-36cceb27e09e%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Geb User Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geb-user/dRqWFUlD5O0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/CA%2B52dQQu7UsMLPH%3D%3D1d5BupojZbZugJ7Co4J0nTOj%2B1OCGhfWA%40mail.gmail.com.