Uploaded July 2024 | Updated November 2026, 3 hours ago
In this lesson, we will learn about Rust programming language testing.
In this episode, we will take a practical approach, providing examples of how you can easily test your Rust applications.
A significant advantage of the Rust Programming language is that you don't need any dependencies to start writing tests!
0:00 Introduction: Testing in Rust
0:38 Anatomy of a Test Function in Rust
4:50 Making a Test that Fails
6:10 Checking Results with the assert! Macro
10:55 Testing Equality with the assert_eq! and assert_ne! Macros
13:20 Adding Custom Failure Messages
16:24 Checking for Panics with the should_panic Attribute
22:08 Using Result in Tests
Check this Open Source Project: rustcrab.com
ALL THE LINKS HERE: francescociulla.com
In this lesson, we will learn about Rust programming language testing.
In this episode, we will take a practical approach, providing examples of how you can easily test your Rust applications.
A significant advantage of the Rust Programming language is that you don't need any dependencies to start writing tests!
0:00 Introduction: Testing in Rust
0:38 Anatomy of a Test Function in Rust
4:50 Making a Test that Fails
6:10 Checking Results with the assert! Macro
10:55 Testing Equality with the assert_eq! and assert_ne! Macros
13:20 Adding Custom Failure Messages
16:24 Checking for Panics with the should_panic Attribute
22:08 Using Result in Tests
Check this Open Source Project: rustcrab.com
ALL THE LINKS HERE: francescociulla.com










