fluent-assertions

Crates.iofluent-assertions
lib.rsfluent-assertions
version0.4.0
sourcesrc
created_at2023-04-04 20:07:44.754916
updated_at2024-09-22 21:04:12.431328
descriptionA Rust testing library that enhances readability and expressiveness by enabling natural language-like syntax for test assertions.
homepage
repositoryhttps://github.com/hauju/fluent-assertions-rs.git
max_upload_size
id830441
size39,656
(hauju)

documentation

https://docs.rs/fluent-assertions

README

Introduction

A fluent assertions framework for Rust, inspired by the renowned Fluent Assertions framework in .NET. This powerful library aims to make your Rust test assertions more expressive, readable, and maintainable by enabling a natural language-like syntax for your test cases.

fluent-assertions provides an extensive set of assertion methods that are both easy to use and understand. These methods are designed to work seamlessly with Rust's core testing functionality, allowing you to write tests that are not only more expressive but also more enjoyable to read and write.

With fluent-assertions, you can chain assertions with ease, allowing for complex validations without sacrificing readability. This framework also comes with informative error messages, making it easier to debug and pinpoint the source of failures in your test suite.

Whether you're new to Rust or an experienced developer, fluent-assertions is designed to help you write cleaner, more readable tests that effectively communicate their intent. With this powerful library at your disposal, you'll be able to focus on what matters most: building reliable and efficient Rust applications.

Usage

Examples

cargo run --example asserts

License

Licensed under either of

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 13

cargo fmt