Jrest
The equivalent of Jest for Rust.
Jrest is a testing framework project for Rust, inspired by Jest, easy to write and easy to read, with fancy diffs when tests fail.
⚠️ Be aware that this is a work in progress.
But it should get regular updates since I'm using it every week on my own open-source projects.
Installation
Usage
.to_be()
Primitives
.to_be_greater_than()
.to_be_greater_than_or_equal()
.to_be_less_than()
.to_be_less_than_or_equal()
Strings
.to_start_with()
.to_start_with()
Roadmap
-
.toContain() -
.toHaveLength() -
.toMatch() -
.toMatchObject() -
.toThrow()
Thanks
- Tom Pridham for test-env-helpers inspiration.