- All Implemented Interfaces:
- java.lang.Cloneable
public class PreQATest
extends org.apache.tools.ant.taskdefs.optional.junit.JUnitTest
This test checks that the tests written by test writers
follows convention and has the appropriate annotations.
Specifically, it looks through all possible classes in the
classpath, and searches for ones not on the ignore list.
For all the classes it finds that it is able to, it gets the
class and checks it for the @RunWith annotation and the @Points
annotation (it also prints the points value when found).
Intended use:
Modify for each project by updating the ignoreList. This will usually
be all files in grading/resources/test-src which are NOT tests, and
all files in solution/reference, but if additional items are added
to the classpath you may have to add more files.
Each test writer should run this pretest BEFORE submitting for QA.
As a precaution, it should also be run after all the tests are
rebased into master.
LIMITATIONS:
It should be noted that this test can only find classes in the classpath.
It should also be noted that you will have to manually maintain the ignore
list. At this time, it cannot check for correctness of the points annotation,
so this should be manually inspected by QAs.
Please add to this file as more needs for Pre-Test QA'ing arises.
- Author:
- ajmaas