Skip to content

Commit

Permalink
Add README to bevy_reflect_compile_fail_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGVSV committed Dec 29, 2022
1 parent 84e3442 commit 5c9efbe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions crates/bevy_reflect_compile_fail_tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Compile fail tests for bevy_reflect

This crate is separate from `bevy_reflect` and not part of the Bevy workspace in order to not fail `crater` tests for
Bevy.
The tests assert on the exact compiler errors and can easily fail for new Rust versions due to updated compiler errors (e.g. changes in spans).

The `CI` workflow executes these tests on the stable rust toolchain (see [tools/ci](../../tools/ci/src/main.rs)).
2 changes: 1 addition & 1 deletion tools/ci/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fn main() {
{
// Reflect Compile Fail Tests
// Run tests (they do not get executed with the workspace tests)
// - See crates/bevy_ecs_compile_fail_tests/README.md
// - See crates/bevy_reflect_compile_fail_tests/README.md
let _subdir = sh.push_dir("crates/bevy_reflect_compile_fail_tests");
cmd!(sh, "cargo test --target-dir ../../target")
.run()
Expand Down

0 comments on commit 5c9efbe

Please sign in to comment.