Skip to content

Commit

Permalink
Rename test xmlrs_reader_tests -> html and run it only when escape-ht…
Browse files Browse the repository at this point in the history
…ml feature is active

After couple of refactorings in the past this file now contains only tests
which requires that feature
  • Loading branch information
Mingun committed Oct 23, 2024
1 parent a6c5fc5 commit 8311eef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 0 additions & 2 deletions tests/xmlrs_reader_tests.rs → tests/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -16,7 +15,6 @@ fn html5() {
);
}

#[cfg(feature = "escape-html")]
#[test]
fn escaped_characters_html() {
test(
Expand Down

0 comments on commit 8311eef

Please sign in to comment.