From ba506bfa085064b9be3e262806d2f5f4ca522aee Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sat, 5 Jan 2019 17:46:42 -0800 Subject: Add first set of integration tests This change introduces the first set of integration-style test for the application. Those tests may or may not connect to an actual Nitrokey device (depending on what they test). We use the nitrokey-test crate's test attribute macro to automatically dispatch tests to connected devices or skip them if a required device is not present. It also provides the means for automatically serializing tests. --- nitrocli/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nitrocli/src/main.rs') diff --git a/nitrocli/src/main.rs b/nitrocli/src/main.rs index 2425562..a9e31f8 100644 --- a/nitrocli/src/main.rs +++ b/nitrocli/src/main.rs @@ -75,6 +75,8 @@ mod args; mod commands; mod error; mod pinentry; +#[cfg(test)] +mod tests; use std::env; use std::io; -- cgit v1.2.1