From 5885468ca4dc29b48bdf7bcba82b7b87e1e7c871 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Thu, 27 Apr 2023 17:50:29 +0200 Subject: [PATCH] Add config test --- src/main.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main.rs b/src/main.rs index 715f8ac..de33eb3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,3 +37,14 @@ fn main() { println!("Hello, world!"); } + +#[cfg(test)] +mod test { + use crate::AppConfig; + + #[test] + fn verify_cli() { + use clap::CommandFactory; + AppConfig::command().debug_assert(); + } +}