From f32078dc8a37ddcc456357f653829f4633fa550a Mon Sep 17 00:00:00 2001 From: Wim Looman Date: Sat, 31 Mar 2018 10:45:52 +0200 Subject: [PATCH] Add separate testcrate Allows testing without inheriting features from the uom build, is tested when running `cargo test` automatically be being a workspace member, so will be tested on travis and appveyor. Includes all the examples from uom so that these examples are tested as if they were part of a separate application. --- Cargo.toml | 4 ++++ testcrate/Cargo.toml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 testcrate/Cargo.toml diff --git a/Cargo.toml b/Cargo.toml index 3ed5350b..01888b49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,10 @@ travis-ci = { repository = "iliekturtles/uom" } coveralls = { repository = "iliekturtles/uom" } maintenance = { status = "actively-developed" } +[workspace] +members = ["testcrate"] +default-members = [".", "testcrate"] + [dependencies] num = "0.1" serde = { version = "1.0", optional = true, default-features = false } diff --git a/testcrate/Cargo.toml b/testcrate/Cargo.toml new file mode 100644 index 00000000..1571408e --- /dev/null +++ b/testcrate/Cargo.toml @@ -0,0 +1,19 @@ +[package] +name = "testcrate" +version = "0.1.0" +authors = ["Wim Looman "] + +[dependencies] +uom = { path = ".." } + +[[example]] +name = "base" +path = "../examples/base.rs" + +[[example]] +name = "mks" +path = "../examples/mks.rs" + +[[example]] +name = "si" +path = "../examples/si.rs"