mozilla / authenticator-rs

Rust library to interact with Security Keys, used by Firefox
https://crates.io/crates/authenticator
Mozilla Public License 2.0
273 stars 70 forks source link

Rewrite tests that use mock devices #298

Open jschanck opened 1 year ago

jschanck commented 1 year ago

The mock device tests (e.g. test_get_assertion_ctap2_pre_flight) are hard to maintain because they simultaneously test high-level protocol behavior and low-level serialization details. We should have separate tests for protocol behavior and serialization. The protocol behavior tests should use virtual authenticators.