Test That! lets you write test assertions which precisely specify your intent:
let vec = vec![5, 123, -4];
assert_that!(vec, each(gt(0)));
and get informative, meaningful diagnostics when the tests fail:
Value of: vec
Expected: only contains elements that is greater than 0
Actual: [5, 123, -4],
whose element #2 is -4, which is less than or equal to 0
I've recently published this new crate as a fork of GoogleTest Rust, which I had spearheaded a few years ago while I was at Google. Test That! has a much improved developer experience compared with the original. See my blog post (linked below) for more details.
I'm really keen on getting feedback on this crate. Please give it a try and let me know your experiences!
Crate: crates.io: Rust Package Registry
GitHub: GitHub - hovinen/test-that: Test assertion library for Rust based on the crate GoogleTest · GitHub
Blog post announcement: Blog -- Bradford Hovinen
1 post - 1 participant
Read full topic
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Maplike - Crate with traits for abstract containers and operations on them | 2 | 7 | 06-07-2026 |
| 2 | [Project Announcement] tinyxml2-rs: A high-performance, drop-in Rust implementation of TinyXML2 | 5 | 7 | 01-07-2026 |
| 3 | Announcing logisheets-rs: a Rust spreadsheet engine with XLSX support | 7 | 8 | 07-07-2026 |
| 4 | Focused library for parsing and formatting ASNs | 0 | 5 | 08-07-2026 |
| 5 | Show and tell : TRAINS: a leaderless, formally-verified total-order broadcast — \~2,400 lines of Rust, checked seven ways | 7 | 8 | 01-07-2026 |
| 6 | Looking for contributors: Rust transparent proxy & protocol parsing project | 5 | 7 | 08-07-2026 |
| 7 | Mqtt-typed-client 0.2: a type-safe async MQTT client on top of rumqttc | 5 | 7 | 08-07-2026 |
| 8 | I wrote my M.Sc. thesis on using the Rust type system in 3D graphics | 0 | 7 | 29-06-2026 |
| 9 | BloomCraft: twelve Bloom filter variants under one API, looking for feedback | 5 | 6 | 06-07-2026 |