Featured Webinar

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 for unit testing using a real world example
Technical Paper

Unit Testing and Isolation Frameworks

Delphi Unit Testing Download Now

Unit testing is an important topic. Very important. Unit testing can mean the difference between a codebase that is clean and maintainable and one that is impossible to maintain.

Delphi developers are lucky. For many years they have had the venerable DUnit framework for doing unit testing, and recent advancements in the language have enabled a new framework for Delphi developers, DUnitX. DUnitX takes advantage of attributes to make building tests and test classes easier than ever before.

This whitepaper discusses the why's and how's of Unit Testing in Delphi. It will make an impassioned plea for doing unit testing. It will show off the powerful language features that can really supercharge your unit tests and the proper techniques for writing good, easy to maintain unit tests. If this whitepaper can't get you writing tests, well, nothing can.

About the Presenter

Nick Hodges has been a part of the Delphi community from the very beginning. He is an original Delphi 1 beta tester, a former member of TeamB, an Advisory Board member for the annual Borland Conference, a frequent conference speaker, a blogger and author of numerous articles on a wide range of Delphi topics.

Nick has a BA in Classical Languages from Carleton College and an MS in Information Technology Management from the Naval Postgraduate School. In his career he has been a busboy, a cook, a caddie, a telemarketer (for which he apologizes), an Office Manager, a high school teacher, a Naval Intelligence officer, a software developer, a product manager, and a software development manager. In addition, he is a former Delphi Product Manager and Delphi R&D Team Manager. He lives with his family in Gilbertsville, PA.

Free Delphi or RAD Studio License

Get a Delphi or RAD Studio download and free 30-day license to try it for yourself.

Download Now