use of com.facebook.buck.testutil.integration.ProjectWorkspace in project buck by facebook.
the class ProjectIntegrationTest method testBuckProjectGeneratedSchemesDoNotIncludeOtherTests.
@Test
public void testBuckProjectGeneratedSchemesDoNotIncludeOtherTests() throws IOException {
ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario(this, "project_generated_schemes_do_not_include_other_tests", temporaryFolder);
workspace.setUp();
ProjectWorkspace.ProcessResult result = workspace.runBuckCommand("project");
result.assertSuccess();
workspace.verify();
}
use of com.facebook.buck.testutil.integration.ProjectWorkspace in project buck by facebook.
the class ProjectIntegrationTest method testGeneratingProjectWithGenruleResourceBuildsGenrule.
@Test
public void testGeneratingProjectWithGenruleResourceBuildsGenrule() throws IOException {
ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario(this, "target_using_genrule_resource", temporaryFolder);
workspace.setUp();
workspace.runBuckCommand("project", "//app:TestApp");
BuckBuildLog buildLog = workspace.getBuildLog();
buildLog.assertTargetBuiltLocally("//app:GenResource");
}
use of com.facebook.buck.testutil.integration.ProjectWorkspace in project buck by facebook.
the class ProjectIntegrationTest method testGeneratingProjectWithTargetUsingGenruleSourceBuildsGenrule.
@Test
public void testGeneratingProjectWithTargetUsingGenruleSourceBuildsGenrule() throws IOException {
ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario(this, "target_using_genrule_source", temporaryFolder);
workspace.setUp();
workspace.runBuckCommand("project", "//lib:lib");
BuckBuildLog buildLog = workspace.getBuildLog();
buildLog.assertTargetBuiltLocally("//lib:gen");
}
use of com.facebook.buck.testutil.integration.ProjectWorkspace in project buck by facebook.
the class ProjectIntegrationTest method schemeWithExtraTestsWithoutSrcTarget.
@Test
public void schemeWithExtraTestsWithoutSrcTarget() throws IOException {
ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario(this, "scheme_with_extra_tests_without_src_target", temporaryFolder);
workspace.setUp();
ProjectWorkspace.ProcessResult result = workspace.runBuckCommand("project");
result.assertSuccess();
workspace.verify();
}
use of com.facebook.buck.testutil.integration.ProjectWorkspace in project buck by facebook.
the class ProjectIntegrationTest method testBuckProjectFocus.
@Test
public void testBuckProjectFocus() throws IOException {
assumeTrue(Platform.detect() == Platform.MACOS);
assumeTrue(AppleNativeIntegrationTestUtils.isApplePlatformAvailable(ApplePlatform.IPHONESIMULATOR));
ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario(this, "project_focus", temporaryFolder);
workspace.setUp();
ProjectWorkspace.ProcessResult result = workspace.runBuckCommand("project", "--config", "project.xcode_focus_disable_build_with_buck=true", "--build-with-buck", "--focus", "//Libraries/Dep1:Dep1_1#iphonesimulator-x86_64 //Libraries/Dep2:Dep2", "//Apps:TestApp#iphonesimulator-x86_64");
result.assertSuccess();
workspace.verify();
}
Aggregations