Skip to content

Commit 8311eef

Browse files
committed
Rename test xmlrs_reader_tests -> html and run it only when escape-html feature is active
After couple of refactorings in the past this file now contains only tests which requires that feature
1 parent a6c5fc5 commit 8311eef

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ name = "encodings"
201201
required-features = ["encoding"]
202202
path = "tests/encodings.rs"
203203

204+
[[test]]
205+
name = "html"
206+
required-features = ["escape-html"]
207+
path = "tests/html.rs"
208+
204209
[[test]]
205210
name = "serde_roundtrip"
206211
required-features = ["serialize"]

tests/xmlrs_reader_tests.rs renamed to tests/html.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use quick_xml::name::{QName, ResolveResult};
66
use quick_xml::reader::NsReader;
77
use std::str::from_utf8;
88

9-
#[cfg(feature = "escape-html")]
109
#[test]
1110
fn html5() {
1211
test(
@@ -16,7 +15,6 @@ fn html5() {
1615
);
1716
}
1817

19-
#[cfg(feature = "escape-html")]
2018
#[test]
2119
fn escaped_characters_html() {
2220
test(

0 commit comments

Comments
 (0)