In this video, we'll be exploring how you can write unit tests in Rust. Unit tests help you to write more robust code, and release better quality software. Rust makes writing unit tests incredibly easy, since tests just Rust functions. There are a couple of attributes you'll want to be aware of, and several methods of structuring your test code. You can incorporate your tests into the same code file that defines the code that will be tested, or you can separate your tests into separate modules.
🚨📦 Help support this channel — shop through my Amazon storefront!
⬇️⬇️⬇️
https://www.amazon.com/shop/trevorsullivan
⬆️⬆️⬆️
🤯 Rust Programming Playlist 🦀 • Rust Programming Tutorial 🦀
📖 How to Write Rust Unit Tests 📦➡️ https://doc.rust-lang.org/book/ch11-01-writing-tests.html
Visual Studio Code ➡️ https://code.visualstudio.com/
Rust Website ➡️ https://rust-lang.org/
Rustup Installer ➡️ https://rustup.rs/
Rust Docs ➡️ https://doc.rust-lang.org/book
Please follow me on these other social channels!
➡️ https://trevorsullivan.net/
➡️ https://github.com/pcgeek86
➡️ https://twitter.com/pcgeek86
➡️ null
➡️ https://facebook.com/trevorsoftware
➡️ https://tiktok.com/pcgeek86
All trademarks, logos and brand names are the property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names,trademarks and brands does not imply endorsement.
#rustlang #rust #rustdev #opensource #software #linux #devops #programming #rusty #dev #coding #codinglife #code #coder #ubuntu #ubuntulinux #appdev #developer
22 Comments