use of com.facebook.buck.testutil.integration.ProjectWorkspace.ProcessResult in project buck by facebook.
the class AuditDependenciesCommandIntegrationTest method testOutputWithoutDuplicates.
@Test
public void testOutputWithoutDuplicates() throws IOException {
ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario(this, "audit_dependencies", tmp);
workspace.setUp();
// Print all of the inputs to the rule.
ProcessResult result = workspace.runBuckCommand("audit", "dependencies", "//example:two", "//example:three");
result.assertSuccess();
assertEquals(workspace.getFileContents("stdout-two-three"), result.getStdout());
}
use of com.facebook.buck.testutil.integration.ProjectWorkspace.ProcessResult in project buck by facebook.
the class BuckConfigTest method testBuckPyIgnorePaths.
@Test
public void testBuckPyIgnorePaths() throws IOException {
ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario(this, "buck_py_ignore_paths", temporaryFolder);
workspace.setUp();
ProcessResult result = workspace.runBuckCommand("test", "--all");
result.assertSuccess("buck test --all should exit cleanly");
}
use of com.facebook.buck.testutil.integration.ProjectWorkspace.ProcessResult in project buck by facebook.
the class AuditDependenciesCommandIntegrationTest method testDirectDependenciesIncludesExtraDependencies.
@Test
public void testDirectDependenciesIncludesExtraDependencies() throws IOException {
ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario(this, "audit_dependencies", tmp);
workspace.setUp();
// Print all of the inputs to the rule.
ProcessResult result = workspace.runBuckCommand("audit", "dependencies", "//example:app-target");
result.assertSuccess();
assertEquals(workspace.getFileContents("stdout-app-target-extra-deps"), result.getStdout());
}
use of com.facebook.buck.testutil.integration.ProjectWorkspace.ProcessResult in project buck by facebook.
the class AuditDependenciesCommandIntegrationTest method testImmediateDependencies.
@Test
public void testImmediateDependencies() throws IOException {
ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario(this, "audit_dependencies", tmp);
workspace.setUp();
// Print all of the inputs to the rule.
ProcessResult result = workspace.runBuckCommand("audit", "dependencies", "//example:one");
result.assertSuccess();
assertEquals(workspace.getFileContents("stdout-one"), result.getStdout());
}
use of com.facebook.buck.testutil.integration.ProjectWorkspace.ProcessResult in project buck by facebook.
the class AuditDependenciesCommandIntegrationTest method testTestFlagWithTransitiveShowsAllTests.
@Test
public void testTestFlagWithTransitiveShowsAllTests() throws IOException {
ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario(this, "audit_dependencies", tmp);
workspace.setUp();
// Print all of the inputs to the rule.
ProcessResult result = workspace.runBuckCommand("audit", "dependencies", "--include-tests", "--transitive", "//example:one");
result.assertSuccess();
assertEquals(workspace.getFileContents("stdout-one-transitive-tests"), result.getStdout());
}
Aggregations