- 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
推薦閱讀
- arc42 by Example
- Cassandra Design Patterns(Second Edition)
- 人人都是網(wǎng)站分析師:從分析師的視角理解網(wǎng)站和解讀數(shù)據(jù)
- FFmpeg入門詳解:音視頻原理及應(yīng)用
- Node Cookbook(Second Edition)
- Essential C++(中文版)
- Apache Camel Developer's Cookbook
- Android 游戲開發(fā)大全(第二版)
- 深入理解Kafka:核心設(shè)計(jì)與實(shí)踐原理
- C++17 By Example
- 從零開始學(xué)Unity游戲開發(fā):場景+角色+腳本+交互+體驗(yàn)+效果+發(fā)布
- Joomla!Search Engine Optimization
- MySQL從入門到精通
- Implementing Splunk(Second Edition)
- 羅布樂思開發(fā)官方指南:Lua 語言編程