JUnit 测试。如何?
JUnit 框架是如何测试的?
考虑到 JUnit 本身就是一个测试框架,他们的框架代码的测试是如何创建的。
他们使用什么技术?他们自己的测试框架?它的更小更基本的版本?另一个框架?
有知情者可以提供一些详细信息吗?
How is the JUnit Framework tested ?
How are the tests for their framework code created, considering that JUnit as a testing framework itself.
What technology are they using ? Their own testing framework ? A smaller more basic version of it ? Another framework ?
Can any knower please provide some details ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我假设他们使用自己的框架进行测试 - 为什么不呢?
查看 来源,他们这样做。
I would assume that they test using their own framework - why wouldn't they?
Looking at the source, they do.
我相信该框架经过了自身测试。我确信我记得在 肯特读过它贝克的 TDD 书。不过也可能是错的。
I believe that the framework is tested with itself. I'm sure I remember reading it in Kent Becks TDD book. Might be mistaken though.
谁看守守望者?
我读过 JUnit 的作者是测试驱动的开发人员,因此理论上他们会在编写 JUnit 类之前编写单元测试。我还记得他们为 Smalltalk 编写了第一个版本,而 JUnit 是 Smalltalk 套件的移植/升级。
Who watches the watchmen?
I've read the authors of JUnit are test driven developers so in theory they would have written the unit tests before the wrote the JUnit classes themselves. I also remember that they wrote the first version for Smalltalk and JUnit was a port/upgrade of the Smalltalk suite.