started tests; some minor build optimization

This commit is contained in:
mgbvox committed 2023-01-19 10:18:36 -05:00
1 parent 9b966202ed
commit eb91d779cf
4 files changed
+132 -2

No files matched your search

+16
View File
@@ -1,4 +1,20 @@
use std::error::Error;
use assert_cmd::prelude::*; // Add methods on commands
use predicates::prelude::*; // Used for writing assertions
use std::process::Command; // Run programs
#[test]
fn ready() {
println!("Compiled successfully!")
}
#[test]
fn test_create() -> Result<(), Box<dyn Error>> {
let mut cmd = Command::cargo_bin("dioxus")?;
cmd.arg("create").arg("scratch");
cmd.assert()
.failure();
Ok(())
}