Result
Result is returned from Runner.run(...).
It exposes:
- the optional root
Descriptorthroughdescriptor() - aggregate outcome predicates:
isPassed(),isFailed(),isSkipped(), andisAborted() - aggregate
startedAt()andcompletedAt()timestamps
Use it to decide whether a programmatic run should fail a surrounding tool:
var result = Runner.defaultRunner().run(action);
if (result.isFailed()) {
throw new AssertionError("Paramixel run failed");
}
For process exit codes, prefer Runner.runAndReturnExitCode(...) or Runner.runAndExit(...).