- Mastering Rust
- Rahul Sharma Vesa Kaihlavirta
- 98字
- 2021-07-02 13:35:23
Tests, Documentation, and Benchmarks
In this chapter, we will continue with Cargo and learn how to write tests, how to document our code, and how to measure the performance of our code with benchmark tests. We'll then put those skills to use and build a simple crate that simulates logic gates, giving you an end- to-end experience of writing unit and integration tests, as well as documentation tests.
In this chapter, we'll cover the following topics:
- Motivation on testing
- Organizing tests and testing primitives
- Unit tests and integration tests
- Documentation tests
- Benchmark tests
- Continuous integration with Travis CI
推薦閱讀
- Learning LibGDX Game Development(Second Edition)
- Intel Galileo Essentials
- C語言程序設計習題解析與上機指導(第4版)
- Windows系統管理與服務配置
- C和C++安全編碼(原書第2版)
- Python Game Programming By Example
- Learning ELK Stack
- 大學計算機基礎(第2版)(微課版)
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(高級進階篇)
- 軟件工程基礎與實訓教程
- ActionScript 3.0從入門到精通(視頻實戰版)
- Mastering Embedded Linux Programming
- Google Adsense優化實戰
- Python趣味創意編程
- Office VBA開發經典:中級進階卷