Back to Browse

Writing and Running Tests - Rust Programming Tutorial #41

14.9K views
Feb 27, 2018
10:59

Testing is relatively straightforward in Rust - it can be done using the 'cargo test' command. Once you have defined some tests in your source code, you are then able to run 'cargo test' to get your test results. In this video I go over some basic examples of testing, how to use other modules + structs in your tests and some testing attributes. For your reference, check this out: https://doc.rust-lang.org/book/first-edition/testing.html Follow me on Twitter @dcode! If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

Download

0 formats

No download links available.

Writing and Running Tests - Rust Programming Tutorial #41 | NatokHD