mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
f8a229b0c9
# Objective There isn't really a way to test that code using bevy_reflect compiles or doesn't compile for certain scenarios. This would be especially useful for macro-centric PRs like #6511 and #6042. ## Solution Using `bevy_ecs_compile_fail_tests` as reference, added the `bevy_reflect_compile_fail_tests` crate. Currently, this crate contains a very simple test case. This is so that we can get the basic foundation of this crate agreed upon and merged so that more tests can be added by other PRs. ### Open Questions - [x] Should this be added to CI? (Answer: Yes) --- ## Changelog - Added the `bevy_reflect_compile_fail_tests` crate for testing compilation errors
13 lines
373 B
TOML
13 lines
373 B
TOML
[package]
|
|
name = "bevy_reflect_compile_fail_tests"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Compile fail tests for Bevy Engine's reflection system"
|
|
homepage = "https://bevyengine.org"
|
|
repository = "https://github.com/bevyengine/bevy"
|
|
license = "MIT OR Apache-2.0"
|
|
publish = false
|
|
|
|
[dev-dependencies]
|
|
bevy_reflect = { path = "../bevy_reflect" }
|
|
trybuild = "1.0.71"
|