From f96eeb94453db5566af4e78cc67bd26408a7fae0 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 13 Apr 2019 13:53:36 -0600 Subject: [PATCH] test: Get off flaky docmatic --- .travis.yml | 1 - Cargo.toml | 2 +- src/lib.rs | 6 ++++++ tests/skeptic.rs | 10 ---------- 4 files changed, 7 insertions(+), 12 deletions(-) delete mode 100644 tests/skeptic.rs diff --git a/.travis.yml b/.travis.yml index c20cc3a32..162844586 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,7 +41,6 @@ install: script: - cargo check --verbose --all - cargo check --verbose --features "cli serde_json object_sorted" -- rm -rf target/debug/deps/*liquid* # Avoid skeptic problems - cargo test --verbose --all - cargo when --channel nightly bench --all - cargo when --channel stable doc --all --no-deps --all-features diff --git a/Cargo.toml b/Cargo.toml index 6d998b86e..8a1d11a18 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,6 +40,7 @@ chrono = "0.4" unicode-segmentation = "1.2" itertools = "0.8.0" url = "1.5" +doc-comment = "0.1" liquid-error = { version = "0.18", path = "liquid-error" } liquid-value = { version = "0.18", path = "liquid-value" } liquid-compiler = { version = "0.18", path = "liquid-compiler" } @@ -55,7 +56,6 @@ deunicode = "1.0.0" [dev-dependencies] difference = "2.0" -docmatic = "0.1" serde_yaml = "0.8" tera = "0.11" handlebars = "1.1" diff --git a/src/lib.rs b/src/lib.rs index 09b38df92..f43d02e86 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -75,3 +75,9 @@ pub use interpreter::ValueStore; pub use liquid_error::Error; pub use parser::*; pub use template::*; + +#[macro_use] +extern crate doc_comment; +doc_comment! { + include_str!("../README.md") +} diff --git a/tests/skeptic.rs b/tests/skeptic.rs deleted file mode 100644 index 1d51e99bc..000000000 --- a/tests/skeptic.rs +++ /dev/null @@ -1,10 +0,0 @@ -extern crate docmatic; - -#[test] -fn readme_test() { - let readme = std::path::Path::new(file!()).canonicalize().unwrap(); - let readme = readme.parent().unwrap().parent().unwrap().join("README.md"); - let readme = readme.to_str().unwrap(); - - docmatic::assert_file(readme); -}