JUnit Guava ClassPath Suite
This is a test suite, which runs all JUnit test found on the class path. The test may be filtered by filters - Guava
Predicates. The classpath is scanned by Guava com.google.common.reflect.ClassPath. The Guava ClassPath scanning has
the known limitation, that it does not scan classes in JARs.
All is implemented in one file org.xmedeko.gcpsuite.GuavaClassPathSuite - just copy&paste to your project.
Inspired by ClasspathSuite [http://johanneslink.net/projects/cpsuite.jsp].
- Use
@RunWith(GuavaClassPathSuite.class)annotation. - Optional - use
@ClassNamePredicateto filter by class name. - Optional - use
@ClassPredicateto filter by instantiated class.
See the example org.xmedeko.gcpsuite.TestSuiteUse.
- Original ClasspathSuite [http://johanneslink.net/projects/cpsuite.jsp]
- Takari's cpsuite [https://github.com/takari/takari-cpsuite]