Details
-
Task
-
Resolution: Done
-
Major
-
3.1.0.Final
-
None
Description
Some unit tests take a long time to run. For example, there are two Teiid sequencer tests that alone take almost a minute. We should have a way of skipping long-running tests during normal developer builds, while still running them during official (e.g., "assembly" profile) builds.
SUMMARY: After this change, it is now possible to add the following field to a test case class:
@Rule public TestRule skipLongRunningRule = new SkipLongRunningRule();
and then annotate the long-running test method with "@SkipLongRunning". When running the tests, such annotated tests will be skipped.