started tests; some minor build optimization
This commit is contained in:
1 parent
9b966202ed
commit
eb91d779cf
4 files changed
+132
-2
No files matched your search
@@ -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(())
|
||||
}
|
||||
Reference in new issue
Block a user