Enable debug view explicitly and test it in CI
This commit is contained in:
parent
1a2e512686
commit
494b0681f8
2 changed files with 5 additions and 6 deletions
4
.github/workflows/integration.yml
vendored
4
.github/workflows/integration.yml
vendored
|
|
@ -19,4 +19,6 @@ jobs:
|
||||||
sudo apt-get install -y libasound2-dev libudev-dev
|
sudo apt-get install -y libasound2-dev libudev-dev
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose --all --all-features
|
run: |
|
||||||
|
cargo test --verbose --all
|
||||||
|
cargo test --verbose --all --all-features
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,8 @@ pub use application::Application;
|
||||||
|
|
||||||
// We disable debug capabilities on release builds unless the `debug` feature
|
// We disable debug capabilities on release builds unless the `debug` feature
|
||||||
// is explicitly enabled.
|
// is explicitly enabled.
|
||||||
#[cfg_attr(any(debug_assertions, feature = "debug"), path = "debug/basic.rs")]
|
#[cfg_attr(feature = "debug", path = "debug/basic.rs")]
|
||||||
#[cfg_attr(
|
#[cfg_attr(not(feature = "debug"), path = "debug/null.rs")]
|
||||||
not(any(debug_assertions, feature = "debug")),
|
|
||||||
path = "debug/null.rs"
|
|
||||||
)]
|
|
||||||
mod debug;
|
mod debug;
|
||||||
|
|
||||||
use debug::Debug;
|
use debug::Debug;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue