weblog.java.net: The Problem with Unit Testing
2004-11-18 15:03
423 查看
Tom Ball wrote:
.....
So what's the problem with unit testing? Unit tests are not tests, but rather a developer's safety net. QA doesn't own unit testing, developers do, and it's an important tool to be shared with your fellow developers on any project. Rename this engineering best practice, and it will be perfect.
....
twosuns commented:
....
Programmer testing should be restricted to the most risky parts of the code, code you don't feel quite comfortable with. Those parts you write specific test cases against and write until the code passes those test cases. Of course no software should leave your hands that doesn't run and crashes in standard use. But IMO it's not the task of the programmer (initially) to take the job of the QA team and do exhaustive testing of every possible scenario.
....
.....
So what's the problem with unit testing? Unit tests are not tests, but rather a developer's safety net. QA doesn't own unit testing, developers do, and it's an important tool to be shared with your fellow developers on any project. Rename this engineering best practice, and it will be perfect.
....
twosuns commented:
....
Programmer testing should be restricted to the most risky parts of the code, code you don't feel quite comfortable with. Those parts you write specific test cases against and write until the code passes those test cases. Of course no software should leave your hands that doesn't run and crashes in standard use. But IMO it's not the task of the programmer (initially) to take the job of the QA team and do exhaustive testing of every possible scenario.
....
相关文章推荐
- Pragmatic Unit Testing in Java with JUnit 书评
- my interests
- Forget to write the diary yesterday
- 测试驱动的网上资源[来自NUnit.org]
- Test-Driven Development in .NET摘要
- Testing ASP.NET Applications with NUnitASP and NUnit
- unit testing private methods
- NUnitForms
- Java Testing and Design - 1. Foreword
- Java Testing and Design - 2. Preface
- Java Testing and Design - 3. Acknowledgments
- Netcat 1.10 使用
- Netcat 1.10 使用
- Web测试工具大全
- FileSystemObject 的例子(处理驱动器、文件夹、文件)
- Is VS.NET ready for enterprise? (5)
- Sonar Used Before Whales Hit Shore
- books recommended for Computer Society Certified Software Engineering
- 如何选择合适的容器以及其实现品
- jfcUnit: 测试Java GUI Swing