}
return global;
}
public TestSummary run(final Launch launch, final int port) throws Exception {
JavaFormatter testFormatter = JavaFormatter.getInstance(launch.getPageName());
testFormatter.setResultsRepository(
new JavaFormatter.FolderResultsRepository(this.outputPath));
testFormatter.setListener(resultListener);
Arguments arguments = new Arguments();
arguments.setDaysTillVersionsExpire("0");
arguments.setInstallOnly(false);
arguments.setOmitUpdates(true);
arguments.setPort(String.valueOf(port));
arguments.setRootPath(this.fitNesseRootPath);
arguments.setCommand(launch.getCommand(this.debug));
FitNesseMain.dontExitAfterSingleCommand = true;
FitNesseMain.launchFitNesse(arguments);
return testFormatter.getTotalSummary();
}