The brainiest courses
for IT brainiacs.

The brainiest courses
for IT brainiacs.

Unit Testing

Course description

The course has a good balance of interactive lectures and hands-on exercises. The attendees are expected to pair-up and work on the lab exercises. The instructor will assist the attendees as they work on the exercises. The objective of the course is for the attendees to gain an in depth practical knowledge of the concepts so they can put them to immediate use on real projects.

The instructor will sign an NDA and like to get samples of code that the team is working on in order to provide targeted training on how to be effective with unit testing for their code. The Section 4 in this course will be exclusively on the client’s code.


Influence of TDD on Agility and sustainability

  • Reasons to do TDD
  • Cost of doing it
  • Cost of not doing it
  • Software systems, design, complexity, and how to cope
  • Importance of Automated tests
  • The two benefits of TDD—rapid feedback and design influence
  • What’s really needed to be effective at TDD?
  • Exercises

Test Driving your Design

  • Types of Tests: White box and black box testing
  • Type of unit tests–positive, negative, and exception tests
  • Setting up your Delphi environment for unit testing
  • What is really a unit of code?
  • How to test drive a unit of code?
  • What is not unit testing?
  • Programming by Intention
  • Simple code that works
  • How to evolve design through unit tests?
  • Practices for Unit Testing
  • Tenets of Unit Testing
  • Detailed example of building a small App test driven
  • When to write unit tests?
  • When not to write unit tests?
  • TDD Patterns and test qualities
  • Measuring code coverage
  • How to make
  • Exercises

Mocking Out Dependencies

  • What makes TDD hard?
  • How to deal with dependencies?
  • First, knock out before you mock out
  • What is a Mock object?
  • What is not a mock?
  • Common pitfalls programmers run into when using mocks
  • How to create mocks?
  • Hand tossing mocks
  • Using a mocking library
  • Unit testing code which sends out emails
  • Unit testing code that depends on a database
  • Unit testing code that requires user interactions
  • Exercises

Unit Testing Your Code

  • A look at your specific code
  • How to approach unit testing your code
  • Dealing with the challenges you face
  • Designing your code for automated testing and continuous integration
  • Exercises on your codebase

Course details

Duration: 2 days
Location: At Client’s venue
Type: Testing

Contact us

Get in touch to find out more about this course