Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Frazer <joseph.frazer@ryansg.com>2020-04-30 14:33:10 -0400
committerJoseph Frazer <joseph.frazer@ryansg.com>2020-05-13 08:04:48 -0400
commit43d00a8268d69bee00e0e2d9ebffd33b66d3062d (patch)
treed772323a848b00d83922ab1185233a2d13251674 /tamer/tests/tameld.rs
parent18d87a6b00a9e2e4e9d859320a0ca7a38c5b24a0 (diff)
downloadtame-43d00a8268d69bee00e0e2d9ebffd33b66d3062d.tar.gz
tame-43d00a8268d69bee00e0e2d9ebffd33b66d3062d.tar.bz2
tame-43d00a8268d69bee00e0e2d9ebffd33b66d3062d.zip
[DEV-7504] Add GraphML generation
We want to be able to build a representation of the dependency graph so we can easily inspect it. We do not want to make GraphML by default. It is better to use a tool. We use "petgraph-graphml".
Diffstat (limited to 'tamer/tests/tameld.rs')
-rw-r--r--tamer/tests/tameld.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tamer/tests/tameld.rs b/tamer/tests/tameld.rs
index 30b2fea..1bbad58 100644
--- a/tamer/tests/tameld.rs
+++ b/tamer/tests/tameld.rs
@@ -68,6 +68,19 @@ fn link_input_file_does_not_exist() -> Result<(), Box<dyn std::error::Error>> {
}
#[test]
+fn link_invalid_emit() -> Result<(), Box<dyn std::error::Error>> {
+ let mut cmd = Command::cargo_bin("tameld")?;
+ cmd.arg("foobar");
+ cmd.arg("--emit").arg("notgood");
+ cmd.arg("-o").arg("tests/data/test-output.xmle");
+ cmd.assert()
+ .failure()
+ .stderr(predicate::str::contains("--emit notgood"));
+
+ Ok(())
+}
+
+#[test]
fn link_empty_input_file() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("tameld")?;
cmd.arg("tests/data/empty.xmlo");