Adds end to end test for building a generated project

master
Avery Harnish 5 years ago
parent b4a4585af2
commit c71ef6f7d7
  1. 14
      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();
}

Loading…
Cancel
Save