use of org.eclipse.n4js.cli.helper.CliCompileResult in project n4js by eclipse.
the class FrontendHelpTest method testLspOptionHelp.
/**
*/
@Test
public void testLspOptionHelp() {
String[] args = { "lsp", "--help" };
CliCompileResult result = n4jsc(args, 0, false);
assertEquals(result.toString(), getUsageExpectationLSP(), result.getStdOut());
}
use of org.eclipse.n4js.cli.helper.CliCompileResult in project n4js by eclipse.
the class PerformanceReportN4jscJarTest method testPerformanceReportViaEnvironmemtVariable.
/**
* Enables performance data logging in the headless compiler via the system environment variable
* {@code N4JSC_PERFORMANCE_REPORT} and asserts the output format of the performance report.
*/
@Test
public void testPerformanceReportViaEnvironmemtVariable() throws IOException {
// setup system environment variables
setEnvironmentVariable(N4jscOptions.N4JSC_PERFORMANCE_REPORT_ENV, PERFORMANCE_REPORT_FILE.toString());
N4jscTestOptions options = COMPILE(PROJECT).performanceKey(// must use other than the default dcBuild!
N4JSDataCollectors.dcN4JSResource.getId());
CliCompileResult cliResult = n4jsc(options, VALIDATION_ERRORS);
makeAssertions(cliResult);
}
Aggregations