Главная
Study mode:
on
1
intro
2
Anatomy of a Test Function
3
Checking Results with the assert! Macro
4
Testing Equality with the assert_eq! and assert_ne! Macros
5
Adding Custom Failure Messages
6
Checking for Panics with should_panic
7
Using Result in Tests
8
Running Tests in Parallel or Consecutively
9
Showing Function Output
10
Running a Subset of Tests by Name
11
Ignoring Some Tests Unless Specifically Requested
12
Test Organization
13
Submodules in Integration Tests
14
Integration Tests for Binary Crates
Description:
Explore automated testing in Rust through this 23-minute video tutorial. Learn the fundamental tools for writing effective tests, including test function anatomy, assertion macros, custom failure messages, and panic checks. Discover how to use Result in tests, run tests in parallel or consecutively, and manage test output. Gain insights into organizing tests, creating submodules for integration testing, and implementing tests for binary crates. Practice writing robust automated tests to ensure your Rust programs function as intended beyond basic compiler checks.

Rust- Automated Testing

The Dev Method
Add to list