From c7f4246722a4e6be20a18d7b51336a56354f9ceb Mon Sep 17 00:00:00 2001 From: sunface Date: Mon, 14 Feb 2022 10:16:08 +0800 Subject: [PATCH] update book toc --- book/contents/SUMMARY.md | 7 ++++--- book/contents/test/intro.md | 2 -- book/contents/test/{unit.md => test-control.md} | 2 +- .../test/{intergration.md => unit-integration-test.md} | 2 +- book/contents/test/write-tests.md | 1 + 5 files changed, 7 insertions(+), 7 deletions(-) rename book/contents/test/{unit.md => test-control.md} (60%) rename book/contents/test/{intergration.md => unit-integration-test.md} (51%) create mode 100644 book/contents/test/write-tests.md diff --git a/book/contents/SUMMARY.md b/book/contents/SUMMARY.md index c1cbb9b6..fd1d0002 100644 --- a/book/contents/SUMMARY.md +++ b/book/contents/SUMMARY.md @@ -90,9 +90,10 @@ ## 专题内容,每个专题都配套一个小型项目进行实践 -- [测试 doing](test/intro.md) - - [单元测试 todo](test/unit.md) - - [集成测试 todo](test/intergration.md) +- [自动化测试](test/intro.md) + - [如何写测试](test/write-tests.md) + - [控制测试的执行](test/test-control.md) + - [单元测试和集成测试](test/unit-integration-test.md) - [性能测试 todo](test/benchmark.md) - [持续集成 todo](test/ci.md) diff --git a/book/contents/test/intro.md b/book/contents/test/intro.md index b0896bba..17c4efcc 100644 --- a/book/contents/test/intro.md +++ b/book/contents/test/intro.md @@ -1,4 +1,2 @@ # 测试 - - cargo test -- --test-threads=1 \ No newline at end of file diff --git a/book/contents/test/unit.md b/book/contents/test/test-control.md similarity index 60% rename from book/contents/test/unit.md rename to book/contents/test/test-control.md index 98605634..1db663c0 100644 --- a/book/contents/test/unit.md +++ b/book/contents/test/test-control.md @@ -1,4 +1,4 @@ -# 单元测试 +# 控制测试的执行 diff --git a/book/contents/test/intergration.md b/book/contents/test/unit-integration-test.md similarity index 51% rename from book/contents/test/intergration.md rename to book/contents/test/unit-integration-test.md index f8c693dc..eba75b67 100644 --- a/book/contents/test/intergration.md +++ b/book/contents/test/unit-integration-test.md @@ -1,3 +1,3 @@ -# 集成测试 +# 单元测试和集成测试 https://www.reddit.com/r/rust/comments/s9zs5c/how_do_you_debug_a_rust_library_after_compilation/ \ No newline at end of file diff --git a/book/contents/test/write-tests.md b/book/contents/test/write-tests.md new file mode 100644 index 00000000..359d011f --- /dev/null +++ b/book/contents/test/write-tests.md @@ -0,0 +1 @@ +# 如何写测试