Skip to content

Commit

Permalink
Merge pull request #178 from Cwolf9/local_translate_cw9_007
Browse files Browse the repository at this point in the history
翻译 get-started/_common/fidl/_testing_intro.md
  • Loading branch information
y2-Whyto authored Aug 9, 2022
2 parents 506fbb1 + b2e6dc6 commit a7fcd19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions get-started/_common/fidl/_testing_intro.md
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)提供,以促进测试用例保持封闭性。

0 comments on commit a7fcd19

Please sign in to comment.