checkout if CI's log contain INFO messages

master
huangjj27 7 years ago
parent 83de8d71d2
commit 06e38ec3e8
  1. 6
      tests/all/build.rs

@ -241,6 +241,12 @@ fn it_format_out_dir_on_windows() {
fixture.run(cli.cmd).unwrap();
let wasm_pack_log = utils::file::read_file(&fixture.path.join("wasm-pack.log")).unwrap();
// may be the CI doesn't output INFO content
assert!(
wasm_pack_log.contains("INFO"),
"wasm_pack.log should output INFO level message",
);
assert!(
wasm_pack_log.contains(r"Your wasm pkg is ready to publish at C:\Users\"),
"directories in wasm-pack.log should be well formatted",

Loading…
Cancel
Save