From c71ef6f7d75945250f6fd8751766b7f449477883 Mon Sep 17 00:00:00 2001 From: Avery Harnish Date: Wed, 22 Jan 2020 13:33:11 -0600 Subject: [PATCH] Adds end to end test for building a generated project --- tests/all/build.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/all/build.rs b/tests/all/build.rs index 98581ae..dbcdaae 100644 --- a/tests/all/build.rs +++ b/tests/all/build.rs @@ -295,3 +295,17 @@ fn build_force() { .assert() .success(); } + +#[test] +fn build_from_new() { + let fixture = utils::fixture::not_a_crate(); + let name = "generated-project"; + fixture.wasm_pack().arg("new").arg(name).assert().success(); + let project_location = fixture.path.join(&name); + fixture + .wasm_pack() + .arg("build") + .arg(&project_location) + .assert() + .success(); +}