testing - 设计的可测试性

标签 testing

关于代码测试的文章很多。但是我们如何确保我们的设计首先在功能上是正确的呢?正如我们有用于测试 Java 代码的 JUnit 一样,是否有一些工具可用于测试基于 UML 的设计,其中测试以功能需求的形式表达?

这些是一些模糊的想法,但想知道是否有一种系统的、可自动化的方法来首先测试设计。换句话说,我们也可以有“测试驱动设计”吗?

最佳答案

are there some tools that can be used to test a UML based design, where the tests are expressed in form of functional requirements?

您不能根据功能需求测试设计,因为功能需求的满足取决于实现,而不是设计。

换句话说,您可以遵循一个糟糕的设计(无限可能的设计中的任何一个),但如果您实现所需的行为,仍然可以满足那组功能要求.

关于testing - 设计的可测试性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6543851/

相关文章:

Angular Testing 和 ngModel

angularjs - 我将如何使用 AngularJs 模拟 Jasmine 的 then() 响应测试

testing - 尝试运行带有速度/ cucumber 测试的 meteor 应用程序时,我的控制台中出现 "Bad response from Chimp Server"

testing - 测试用例生成工具

几秒钟后Javascript调整图像大小

iOS 开发 : Is there a way to read . 在不使用仪器的情况下从命令提示符跟踪文件

testing - Gradle 配置 TestNG 和 JUnit 报告目录

python + Nose : make assertions about logged text?

php - 测试 Laravel 护照

unit-testing - 模拟 os.GetEnv ("ENV_VAR")