Iterating on Testing in Rust

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • proptest

    Hypothesis-like property testing for Rust

  • Isn't proptest something that could handle this?

    https://github.com/proptest-rs/proptest

  • mockall

    A powerful mock object library for Rust

  • I use the mockall crate myself, which works rather well. It does however mean that you need to generally write your code as traits, and pass them around as traits.

    https://github.com/asomers/mockall

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • quickcheck

    Automated property based testing for Rust (with shrinking).

  • Maybe https://github.com/BurntSushi/quickcheck too?

  • yam-rs

  • https://github.com/Ygg01/steel_yaml/blob/master/tests/yaml_t...

    Here is how I made dynamic tests for it.

    But cargo nextest is a game changer. Colored output + fast fail (configurable) + timeout detection is just great.

    https://nexte.st/book/custom-test-harnesses.html

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts