/rust_testing_frameworks

Rust testing frameworks for unit-, integration- and system-tests

Primary LanguageRustMIT LicenseMIT

Rust testing frameworks for unit-, integration- and system-tests

... tried out.

Folders herein:

  • untested_code: A piece of untested code that should serve as template for further tests

  • mockall_mock_a_sensor: Multiple approaches with cargo test and mockall (not in sync with the template

  • {F}_experiment : Some experiments with Framework F

Used / tested / tried already:

Usabilty for UT, IT, ST and general impression:

  • polish: Impression --
  • rstest: Impression ++

ToDo List

To-Do list - frameworks:

BDD

To-Do list - helpers, macros, etc

To-Do list - test doubles

More hints are on:

Ideas for new templates

Add a code template for a system test that calls processes; with other permissions; sudo, sudo -E; runs regex on stderr and stdout; injects stdtin; calls processes in sub-shells; call system management like systemd.

Furhter Links