-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from Cwolf9/local_translate_cw9_007
翻译 get-started/_common/fidl/_testing_intro.md
- Loading branch information
Showing
1 changed file
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
<!-- | ||
[Integration testing](https://en.wikipedia.org/wiki/Integration_testing){:.external} | ||
focuses on validating your component's behavior as it interacts with other | ||
components on the system. Because of this, integration tests are typically built | ||
separately from the main component and may declare the component under test | ||
and other dependencies as children. Depending on the nature of the test, | ||
dependency components may be provided as mocks or stubs to promote that the test | ||
cases remain hermetic. | ||
--> | ||
[集成测试](https://en.wikipedia.org/wiki/Integration_testing){:.external} 侧重于验证组件的行为,因为它会与系统上其他组件进行交互。正因为如此,集成测试通常与主组件分开构建,并且可能将被测组件和其他依赖组件声明为子组件。根据测试的性质,依赖组件可以作为模拟(mock)或存根(stub)提供,以促进测试用例保持封闭性。 |