k9
k9 copied to clipboard
Rust testing library
The [`term_size`] crate is no longer maintained, and behaves incorrectly [on PowerPC]. This patch migrates k9 to the [`terminal_size`] crate instead. [`term_size`]: https://crates.io/crates/term_size [`terminal_size`]: https://crates.io/crates/terminal_size [on PowerPC]: https://github.com/ogham/exa/issues/400
add ``` #![warn(clippy::unwrap_used)] #![warn(clippy::expect_used)] ``` to `lib.rs` to enable linter that will show all usages of `unprawe()` and `expect()`
**Usecase**: Difference between two structs. **Assertion**: `assert_equal` **Current Output**:  **Collapsed Output**:  **Method**: String Iteration **Implementation**: 1. Computed the index of each occurrence with reference to (`-` or `+`)....
we have line! and column! macros. we can technically take out a pice of code with some context around it where assertion failed and add it to the error message...
Regex feature is undocumented currently https://github.com/aaronabramov/k9/blob/f979a89a31d455c8db74635e3fb5f94c189d5def/Cargo.toml#L12-L13
``` assert_err_matches_regex!( conn.query_raw("SELECT 1").await, "time out" ); ``` works, but ``` assert_err_matches_regex!( conn.query_raw("SELECT 1").await, "time out", ); ``` doesn't
Hi Aaron, This PR addresses #83 although it's very much a work in progress and I am working to fix all the bugs and issues caused by introducing the new...
Hey, I found a small bug. When the input for the snapshot macro has a `\` followed by a space, that backspace will be duplicated in the generated snapshot. That...
Is there a doc build issue, or is something else wonky? I tend to use docs.rs as a quick way to sanity check the current version so I was surprised...