Package org.jvnet.hudson.test
Class BuildWatcher
java.lang.Object
org.junit.rules.ExternalResource
org.jvnet.hudson.test.BuildWatcher
- All Implemented Interfaces:
org.junit.rules.TestRule
public final class BuildWatcher
extends org.junit.rules.ExternalResource
Echoes build output to standard error as it arrives.
Usage:
@ClassRule public static BuildWatcher buildWatcher = new BuildWatcher();
Should work in combination with JenkinsRule or RestartableJenkinsRule.- Since:
- 1.607
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.junit.rules.ExternalResource
apply
-
Constructor Details
-
BuildWatcher
public BuildWatcher()
-
-
Method Details
-
before
- Overrides:
beforein classorg.junit.rules.ExternalResource- Throws:
Throwable
-
after
protected void after()- Overrides:
afterin classorg.junit.rules.ExternalResource
-