mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
feat(cli): add clap parse test (#11189)
lets us catch runtime errors early on the testing phase - for instance when we add two arguments with the same flag
This commit is contained in:
committed by
GitHub
parent
f5d61822bf
commit
11e9f2eb83
@@ -376,3 +376,15 @@ impl CommandExt for Command {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use clap::CommandFactory;
|
||||
|
||||
use crate::Cli;
|
||||
|
||||
#[test]
|
||||
fn verify_cli() {
|
||||
Cli::command().debug_assert();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user