delphi - 在哪里可以找到有关在 Delphi 2007 或更高版本中使用 DUnit 的介绍?

标签 delphi unit-testing dunit

我是使用和编写单元测试的新手,但我确信它们可以帮助我编写更好的代码并最终节省我的时间。我明白DUnit很好地集成到 Delphi 2006 及更高版本中。

有谁知道使用 DUnit 编写单元测试的任何好资源以及可能的单元测试总体介绍吗?

我找到了resource from Charlie Calvert我一直在读,但我是一个喜欢看电影的人,我也想看任何与 DUnit 测试相关的视频(如果存在的话)。如有任何帮助,我们将不胜感激。

最佳答案

E channel 快速介绍:

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

关于delphi - 在哪里可以找到有关在 Delphi 2007 或更高版本中使用 DUnit 的介绍?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4186022/

相关文章:

c++ - 模拟静态/全局函数的最佳简单方法?

python - unittest 将变量作为参数传递

javascript - 使用 Visual Studio 2010 设置 jsTestDriver

delphi - 在 Delphi 2010 上更新 DUnit

unit-testing - 如何打破依赖关系以启用单元测试

delphi - Dunit 控制台模式 - 执行测试两次

德尔福2007 : How to Set TSAWARE?

delphi - Delphi:不兼容的类型:当两个值都分配为实数时,则为“整数”和“扩展”

delphi - 如何使用操作来确定控件的可见性?

delphi - 如何用 2 个或更多类实现相同的方法?