From e032215be910981dfea7aa83dbbafbf247c26ccf Mon Sep 17 00:00:00 2001 From: Martijn Gribnau Date: Sat, 18 Jun 2022 14:54:41 +0200 Subject: [PATCH] Require channel_reporter feature for integration tests --- Cargo.toml | 16 ++++++++++++++++ tests/collecting_handler.rs | 1 - tests/multi_handler.rs | 1 - tests/registering_handler.rs | 1 - 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4f33e75..826bbfc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,6 +29,8 @@ indicatif = "0.16.2" # parameterized tests yare = "1.0.1" +# --- Examples + [[example]] name = "json_lines" required-features = ["channel_reporter"] @@ -36,3 +38,17 @@ required-features = ["channel_reporter"] [[example]] name = "readme" required-features = ["channel_reporter"] + +# --- Integration tests + +[[test]] +name = "collecting_handler" +required-features = ["channel_reporter"] + +[[test]] +name = "multi_handler" +required-features = ["channel_reporter"] + +[[test]] +name = "registering_handler" +required-features = ["channel_reporter"] diff --git a/tests/collecting_handler.rs b/tests/collecting_handler.rs index 9c64a18..fb1ba20 100644 --- a/tests/collecting_handler.rs +++ b/tests/collecting_handler.rs @@ -1,5 +1,4 @@ // A sample implementation which collects the events it receives -#![cfg(feature = "channel_reporter")] extern crate core; use std::sync::atomic::{AtomicUsize, Ordering}; diff --git a/tests/multi_handler.rs b/tests/multi_handler.rs index 46af89c..4a3e8c8 100644 --- a/tests/multi_handler.rs +++ b/tests/multi_handler.rs @@ -1,5 +1,4 @@ // A sample implementation which collects the events it receives -#![cfg(feature = "channel_reporter")] extern crate core; use std::marker::PhantomData; diff --git a/tests/registering_handler.rs b/tests/registering_handler.rs index db229a2..c185229 100644 --- a/tests/registering_handler.rs +++ b/tests/registering_handler.rs @@ -1,5 +1,4 @@ // A sample implementation which collects the events it receives -#![cfg(feature = "channel_reporter")] extern crate core; use std::sync::atomic::{AtomicUsize, Ordering};