gfx-rs/wgpu

Enable `clippy::tests_outside_test_module` lint

Open

#6,106 opened on Aug 12, 2024

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Rust (9,290 stars) (703 forks)batch import
area: infrastructuregood first issuetype: enhancement

Description

There's a whole bunch of tests that aren't in test modules. This should be solved once and for all using this clippy lint https://rust-lang.github.io/rust-clippy/master/index.html#/tests_outside_test_module

Not doing so means that the tests will be unnecessarily compiled as part of non test builds

Contributor guide

Enable `clippy::tests_outside_test_module` lint · gfx-rs/wgpu#6106 | Good First Issue