我是新手使用和编写单元测试,但我已经确信他们可以帮助我编写更好的代码并最终节省我的时间.据我所知,DUnit已经很好地集成到Delphi 2006和更新版本中.
有没有人知道用DUnit编写单元测试的任何好资源,可能还有一般的单元测试介绍?
我发现了一个resource from Charlie Calvert,我一直在阅读,但我是一个有点动人的照片,我也希望看到任何与DUnit测试有关的视频(如果它们存在的话).任何帮助表示赞赏.
频道E快速介绍:
http://channel-e.embarcadero.com/index.php?option=com_jvideodirect&x=1&v=gUNNLQi761kLo
编辑
以上链接不再是最新的. http://forms.embarcadero.com/DelphiUnitTesting2-12是一个关于单元测试的网络研讨会.描述:
RAD in Action: Unit Testing in Delphi Featuring Nick Hodges
Watch Now
Join Embarcadero and Delphi programming expert and author,Nick
Hodges,for an in-depth look at unit testing in Delphi.
Without unit tests your code is fragile,hard to change,and
unreliable. Unit testing is the only way that you can be sure that
your code does what it is supposed to do.
In this webinar,Nick discusses the basics of Unit Testing as well as
providing a demo that illustrates the points at hand using the new
DUnitX framework. This will lead to a discussion of stubs and mocks,
and the use of the DelphiMocks.
Topics covered include:
- What is Unit Testing?
- Why you should be doing Unit Testing
- Proper unit testing techniques including covering the “middle of the plate”,the “outside corners” as well as checking exceptions
- A specific use case or unit testing using a real world example
警告 – 视频超过2小时.您可以在此处直接访问:https://www.youtube.com/watch?v=SJsgLDjn5b4.