Google在测试碎片化上的最新研究
Definition
- Flaky Tests,指在被测对象和测试条件都不变的情况下,有时候失败、有时候成功的测试,实际上就是不稳定的测试,或者随机失败(随机成功)的测试。
- Test Flakiness,指的是由于 Flaky Tests 的存在而导致的对测试效果的削弱,称之为测试碎片化。
PS: 碎片化这个翻译,不太准确,但找不到更好的之前,姑且用之~
最新的 Google Testing Blog 连续2期对测试碎片化进行了阐述,主要对Test Flakiness可能产生的原因进行分类并给出相应的消减措施。
- 2020.12: Test Flakiness - One of the main challenges of automated testing
- 2021.03: Test Flakiness - One of the main challenges of automated testing (Part II)
Additional information
- 2020.07 Microsoft: ICSE 2020: A Study on the Lifecycle of Flaky Tests
- 2017.04 Google: Where do our flaky tests come from
- 2016.12 Google: GTAC 2016: How Flaky Tests in Continuous Integration
- 2016.05 Google: Flaky test at google and how we mitigate them