gpt4 book ai didi

testing - 究竟什么是试车手?

转载 作者:行者123 更新时间:2023-11-28 20:20:29 26 4
gpt4 key购买 nike

在软件工程的背景下,什么是测试驱动程序?是调用其他函数并显示其输出以进行测试的 main() 函数吗?还是每个功能都有单独的测试驱动程序?

最佳答案

Is it the main() function that calls other functions, and displays their output, for testing?

本质上,是的;在software testing的范围内,测试驱动程序只是组织测试、运行测试并处理测试输出的包装器/机制。它通常更多用于 unit testing比说 QA 测试。

这很笼统,因为您通常会根据项目或团队的需要编写驱动程序。它可以是测试框架的一部分,但不是必须的。

Or is there a separate test driver for each function?

通常不会,不会。您的驱动程序旨在处理所有测试或一组测试。

关于testing - 究竟什么是试车手?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22082382/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com