use of com.intellij.execution.testframework.sm.runner.GeneralTestEventsProcessor in project buck by facebook.
the class BuckToGeneralTestEventsConverter method consumeTestRunStarted.
@Override
public void consumeTestRunStarted(long timestamp) {
final GeneralTestEventsProcessor processor = getProcessor();
if (processor == null) {
return;
}
processor.onUncapturedOutput("Test run started at " + DateFormatUtil.formatTimeWithSeconds(new Date(timestamp)) + "\n", ProcessOutputTypes.STDOUT);
}
use of com.intellij.execution.testframework.sm.runner.GeneralTestEventsProcessor in project intellij by bazelbuild.
the class BlazeXmlToTestEventsConverter method reportTargetWithoutOutputFiles.
/**
* If there are no output files, the test may have failed to build, or timed out. Provide a
* suitable message in the test UI.
*/
private void reportTargetWithoutOutputFiles(Label label, TestStatus status) {
if (status == TestStatus.PASSED) {
// Empty test targets do not produce output XML, yet technically pass. Ignore them.
return;
}
GeneralTestEventsProcessor processor = getProcessor();
TestSuiteStarted suiteStarted = new TestSuiteStarted(label.toString());
processor.onSuiteStarted(new TestSuiteStartedEvent(suiteStarted, /*locationUrl=*/
null));
String targetName = label.targetName().toString();
processor.onTestStarted(new TestStartedEvent(targetName, /*locationUrl=*/
null));
processor.onTestFailure(getTestFailedEvent(targetName, STATUS_EXPLANATIONS.get(status) + " See console output for details", /*content=*/
null, /*duration=*/
0));
processor.onTestFinished(new TestFinishedEvent(targetName, /*duration=*/
0L));
processor.onSuiteFinished(new TestSuiteFinishedEvent(label.toString()));
}
Aggregations