1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-21 14:46:37 +02:00

Add a file which references some useful crates to use for writing tests (#617)

* Add a slide referencing recommended testing crates

---------

Co-authored-by: Martin Geisler <martin@geisler.net>
This commit is contained in:
Bradford Hovinen 2023-05-05 16:59:25 +02:00 committed by GitHub
parent 5a495a508e
commit 5bbb68be2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -165,6 +165,7 @@
- [Test Modules](testing/test-modules.md) - [Test Modules](testing/test-modules.md)
- [Documentation Tests](testing/doc-tests.md) - [Documentation Tests](testing/doc-tests.md)
- [Integration Tests](testing/integration-tests.md) - [Integration Tests](testing/integration-tests.md)
- [Useful crates](testing/useful-crates.md)
- [Unsafe Rust](unsafe.md) - [Unsafe Rust](unsafe.md)
- [Dereferencing Raw Pointers](unsafe/raw-pointers.md) - [Dereferencing Raw Pointers](unsafe/raw-pointers.md)
- [Mutable Static Variables](unsafe/mutable-static-variables.md) - [Mutable Static Variables](unsafe/mutable-static-variables.md)

View File

@ -0,0 +1,9 @@
## Useful crates for writing tests
Rust comes with only basic support for writing tests.
Here are some additional crates which we recommend for writing tests:
* [googletest](https://docs.rs/googletest): Comprehensive test assertion library in the tradition of GoogleTest for C++.
* [proptest](https://docs.rs/proptest): Property-based testing for Rust.
* [rstest](https://docs.rs/rstest): Support for fixtures and parameterised tests.