diff --git a/Cargo.toml b/Cargo.toml index fcd6494f..34e5455a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -201,6 +201,11 @@ name = "encodings" required-features = ["encoding"] path = "tests/encodings.rs" +[[test]] +name = "html" +required-features = ["escape-html"] +path = "tests/html.rs" + [[test]] name = "serde_roundtrip" required-features = ["serialize"] diff --git a/tests/xmlrs_reader_tests.rs b/tests/html.rs similarity index 98% rename from tests/xmlrs_reader_tests.rs rename to tests/html.rs index 3efbf2a1..19688064 100644 --- a/tests/xmlrs_reader_tests.rs +++ b/tests/html.rs @@ -6,7 +6,6 @@ use quick_xml::name::{QName, ResolveResult}; use quick_xml::reader::NsReader; use std::str::from_utf8; -#[cfg(feature = "escape-html")] #[test] fn html5() { test( @@ -16,7 +15,6 @@ fn html5() { ); } -#[cfg(feature = "escape-html")] #[test] fn escaped_characters_html() { test(