Skip to content

Commit

Permalink
developing salt docs update6.
Browse files Browse the repository at this point in the history
  • Loading branch information
watermelonbig committed Feb 18, 2020
1 parent 3d86592 commit 86f7fda
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
17 changes: 8 additions & 9 deletions chapter24/13.Salt-Test-Suite.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
# Salt's Test Suite

Salt comes with a powerful integration and unit test suite allowing for the fully automated run of integration and/or unit tests from a single interface.
Salt附带了功能强大的集成和单元测试套件,允许从单个界面全自动运行集成和/或单元测试。

To learn the basics of how Salt's test suite works, be sure to check out the Salt's Test Suite: An Introduction tutorial.
Test Directory Structure
要了解Salt的测试套件如何工作的基础知识,请务必查看Salt的测试套件:[Salt's Test Suite:An Introduction](https://github.com/watermelonbig/SaltStack-Chinese-ManualBook/blob/master/chapter05/05-8-20.Salt-Test-Suits-an-introduction.md)

Salt's test suite is located in the tests directory in the root of Salt's codebase. The test suite is divided into two main groups:
## Test Directory Structure

Integration Tests
Salt的测试套件位于Salt的代码库根目录下的tests目录中。 测试套件分为两个主要组成部分:
- Integration Tests - 集成测试
- Unit Tests - 单元测试

Unit Tests
在每个组中,目录结构大致反映了Salt自己的代码库的结构。 请注意,每个测试组中都有`states`, `modules`, `runners`, `output`等目录。

Within each of these groups, the directory structure roughly mirrors the structure of Salt's own codebase. Notice that there are directories for states, modules, runners, output, and more in each testing group.

The files that are housed in the modules directory of either the unit or the integration testing factions contain respective integration or unit test files for Salt execution modules.
单元或集成测试类别下的 `modules` 目录中包含的文件包含Salt执行模块的相应集成或单元测试文件。

Note

Expand Down
4 changes: 4 additions & 0 deletions chapter24/14.Integration-Tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Integration Tests


https://docs.saltstack.com/en/latest/topics/development/tests/integration.html
4 changes: 4 additions & 0 deletions chapter24/15.Writing-Unit-Tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Writing Unit Tests


https://docs.saltstack.com/en/latest/topics/development/tests/unit.html

0 comments on commit 86f7fda

Please sign in to comment.