February 2015
Intermediate to advanced
338 pages
8h 16m
English
In Dependency Injection, we saw how Cucumber uses dependency injection (DI) to share an instance of KnowsTheDomain between our step definitions, but we really only scratched the surface. Now it’s time to dig a little bit deeper.
In this chapter we’ll discuss how DI can help improve the design of your test code and the various DI containers that are integrated with Cucumber. Then we’ll dive in and refactor our ATM example to use DI more effectively, showing you how to do it with four of the popular DI containers.
Read now
Unlock full access