V2EX  ›  英汉词典

Unit-test

释义 Definition

单元测试:在软件开发中,对程序中最小的可测试单元(如函数、方法、类)进行的自动化或半自动化测试,用来验证其行为是否符合预期。(也可作动词:对某个单元进行测试。)

发音 Pronunciation

/ˈjuːnɪt tɛst/

例句 Examples

I wrote a unit-test for the login function.
我为登录功能写了一个单元测试。

Before merging the code, we ran unit-tests to ensure the new changes didn’t break existing features.
在合并代码之前,我们运行了单元测试,以确保新的改动不会破坏现有功能。

词源 Etymology

unit-testunit(单元) + test(测试) 组成,是软件工程领域的复合词;“unit”强调测试对象足够小、边界清晰,“test”强调以可重复的方式验证行为。随着自动化测试工具与工程实践普及,该词在现代开发流程中变得非常常见。

相关词 Related Words

文学与作品 Literary Works

  • Test Driven Development: By Example(Kent Beck)
  • xUnit Test Patterns: Refactoring Test Code(Gerard Meszaros)
  • Clean Code: A Handbook of Agile Software Craftsmanship(Robert C. Martin)
  • Working Effectively with Legacy Code(Michael Feathers)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5495 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 20ms · UTC 07:02 · PVG 15:02 · LAX 00:02 · JFK 03:02
♥ Do have faith in what you're doing.