Skip to content

the-james-burton/testing-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testing-workshop Build Status

DRAFT

Summary

A series of exercises to illustrate testing. This workshop will take you on a journey to improve a small application that was built without testing in mind. Each exercise is in its own branch and is called a chapter. The README.md file in each chapter contains a situation description and a mission for you to do, should you choose to accept it. Successive chapters contain a solution to the previous chapter. This is not a test and there are no right answers. For now, we are just covering the basics of testing and refactoring.

Exercise Build Status

branch status description
chapter1 Build Status Write your first test and execute it locally. Learn how to do a PR.
chapter2 Build Status Get your CI system to run your test, does it work? If not, fix it.
chapter3 Build Status Measure and increase code coverage.
chapter4 Build Status Extract code from main() method.
chapter5 Build Status Extract parsing functionality.
chapter6 Build Status Write first unit tests.
chapter7 Build Status Extract report functionality using interfaces.
chapter8 Build Status Write unit tests for reports.
chapter9 Build Status Asserting on System.out.
chapter10 Build Status Simple dependency injection.
chapter11 Build Status Mocking dependencies in the unit tests.
chapter12 Build Status Assert on only the functionality of the class under test.
chapter13 Build Status Complete the mocking for a fully isolated test.
chapter14 Build Status Using AssertJ for fluent assertions.
chapter15 Build Status Basic test-driven development by implementing a new requirement
chapter16 Build Status The final solution

About

A series of exercises to illustrate simple unit testing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages