- 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
推薦閱讀
- 精通Nginx(第2版)
- AngularJS入門與進階
- Java程序設計(慕課版)
- Swift 3 New Features
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- 零基礎學Java(第4版)
- 琢石成器:Windows環境下32位匯編語言程序設計
- 算法訓練營:提高篇(全彩版)
- 程序員修煉之道:通向務實的最高境界(第2版)
- PLC編程與調試技術(松下系列)
- Oracle 18c 必須掌握的新特性:管理與實戰
- HTML5秘籍(第2版)
- “笨辦法”學C語言
- 零基礎看圖學ScratchJr:少兒趣味編程(全彩大字版)
- 深度學習程序設計實戰