[Bug]: marker_uitest
doesn't handle paths correctly, causing $DIR
replacements to fail
#276
Labels
A-marker-uitest
Area: ui-test infrastructure (marker_uitests)
C-bug
Category: Something isn't working
Milestone
Summary
Marker's ui test crate provides the
simple_ui_test_config!
macro, with usestests/ui
as the default hard-coded path. Running the tests on windows will result in path with different types of separators, liketests/ui\windows.rs
. This is also the reason why the$DIR
replacement has been weird in this repo.@Alexendoo
suggested the following nice fix:And also mentioned another bug:
This bug only effects windows and there are workarounds, by either not testing on windows (this is what markers lint-crate-template does) or avoiding the macro: rust-marker/marker-example-lints#5. I'm uncertain if we should have a point release, maybe if there are more bugs I've missed
Version
Context
cc: oli-obk/ui_test#177
The text was updated successfully, but these errors were encountered: