mirror of
https://github.com/bevyengine/bevy
synced 2024-12-28 22:13:08 +00:00
9d59e52bb0
# Objective Make compile fail tests less likely to break with new Rust versions. Closes #12627 ## Solution Switch from [`trybuild`](https://github.com/dtolnay/trybuild) to [`ui_test`](https://github.com/oli-obk/ui_test). ## TODO - [x] Update `bevy_ecs_compile_fail_tests` - [x] Update `bevy_macros_compile_fail_tests` - [x] Update `bevy_reflect_compile_fail_tests` --------- Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de> Co-authored-by: BD103 <59022059+BD103@users.noreply.github.com>
10 lines
429 B
Rust
10 lines
429 B
Rust
fn main() -> bevy_compile_test_utils::ui_test::Result<()> {
|
|
// Run all tests in the tests/example_tests folder.
|
|
// If we had more tests we could either call this function
|
|
// on everysingle one or use test_multiple and past it an array
|
|
// of paths.
|
|
//
|
|
// Don't forget that when running tests the working directory
|
|
// is set to the crate root.
|
|
bevy_compile_test_utils::test("tests/example_tests")
|
|
}
|