Skip to content

tests: load JSON fixtures at runtime for crates.io archives - #444

Open
rome-xi wants to merge 3 commits into
servo:mainfrom
rome-xi:contrib/rust-cssparser-213
Open

tests: load JSON fixtures at runtime for crates.io archives#444
rome-xi wants to merge 3 commits into
servo:mainfrom
rome-xi:contrib/rust-cssparser-213

Conversation

@rome-xi

@rome-xi rome-xi commented Aug 24, 2026

Copy link
Copy Markdown

Closes #213.

Replace include_str! for the CSS parsing JSON fixtures with std::fs::read_to_string so cargo test compiles from the crates.io package (those files are in exclude). Missing fixtures still fail at runtime (no silent green); they can be --skipped when packaging.

Signed-off-by: rome-xi <rome-xi@users.noreply.github.com>
@emilio

emilio commented Aug 24, 2026

Copy link
Copy Markdown
Member

Please run cargo fmt so CI is happy, looks good with that :)

@emilio emilio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Ticking request changes so I notice when it gets updated)

rome-xi and others added 2 commits August 25, 2026 01:43
Co-authored-by: rome-xi <rome-xi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cargo test fails on archive from crates.io

2 participants