Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xmedeko/gcpsuite
JUnit Guava ClassPath Suite
https://github.com/xmedeko/gcpsuite
guava java junit junit-guava
Last synced: about 1 month ago
JSON representation
JUnit Guava ClassPath Suite
- Host: GitHub
- URL: https://github.com/xmedeko/gcpsuite
- Owner: xmedeko
- License: other
- Created: 2013-04-11T06:13:17.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-16T20:13:53.000Z (over 9 years ago)
- Last Synced: 2023-05-31T11:20:21.390Z (over 1 year ago)
- Topics: guava, java, junit, junit-guava
- Language: Java
- Size: 129 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
gcpsuite
========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`](https://github.com/xmedeko/gcpsuite/blob/master/src/main/java/org/xmedeko/gcpsuite/GuavaClassPathSuite.java) - just copy&paste to your project.
Inspired by ClasspathSuite [http://johanneslink.net/projects/cpsuite.jsp].
Usage
-----1. Use `@RunWith(GuavaClassPathSuite.class)` annotation.
2. Optional - use `@ClassNamePredicate` to filter by class name.
3. Optional - use `@ClassPredicate` to filter by instantiated class.See the example [`org.xmedeko.gcpsuite.TestSuiteUse`](https://github.com/xmedeko/gcpsuite/blob/master/src/test/java/org/xmedeko/gcpsuite/TestSuite.java).
Related Projects
----------------
* Original ClasspathSuite [http://johanneslink.net/projects/cpsuite.jsp]
* Takari's cpsuite [https://github.com/takari/takari-cpsuite]