Test-Driven Development

CloudLabs

Projects

Assignment

24x7 Support

Lifetime Access

.

Course Overview

One will learn the popular and productive Test Driven Development (TDD) techniques with context to Java. It will help participants to write reliable bug-free applications using Test Driven Development. This hands-on course teaches various techniques and patterns of Test Driven Development. It will teach refactoring that lead to reliable designs and code and introduce a number of testing patterns and strategies.

At the end of the training, participants will be able to:

  1. Apply Test Driven Development with Eclipse
  2. Identify tests
  3. To organize and implement tests that leads to reliable designs and coding
  4. Extract “bad smells” and refactor code and tests
  5. Extracting max value from the Eclipse for Test Driven Development
  6. Suggested Audience
  7. Java Developers
  8. Designers
  9. Architects
  10. Consultants

Pre-requisite

  1. Attendees must be proficient in Java.

Duration

3 days

Course Outline

  1. Philosophy of Developer Unit Testing
  2. Anatomy of Unit Testing Framework
  3. Automated Tests
  4. Overview of xUnit
  5. Levels of Testing
  1. Common Code Smells
  2. Dealing with Code Smells
  1. Purpose of Refactoring
  2. Refactoring Patterns
  3. Using Automated Refactoring
  1. Introduction to TDD
  2. Test First Vs Test Last
  3. TDD Rhythm: Red, Green, Refactor
  4. Crucial Design Principles
  5. Driving Design using TDD
  6. Different Styles of TDD
  1. Driving Implementation and Design from Scenarios
  2. Application Development from scratch using Scenarios
  3. Crafting acceptance criteria for user stories
  4. Writing executable examples for each criteria
  5. Documenting Scenarios with Gherkin
  6. Demo of BDD frameworks (Cucumber, FitNesse, Spec Flow, Jasmine)
  7. Automation Hazards
  8. Safe Automation Practices
  1. Test Doubles/Fakes – Stubs, Mocks, Spy, Simulators…
  2. TDD in Legacy Code
  3. Breaking Dependencies in Legacy Code
  4. Patterns for writing effective tests

Reviews