Connect'15 - Web Experience

Wed, June 24th 2015, 13:00 - 13:30
Stadtcasino Basel

Test-driven development with AEM - Jan Wloka, Software Architect bei Quatico, demonstriert wie Test-driven development mit AEM langfristig und kosteneffizient funktionieren kann.

Abstract

If you develop a non-trivial web application with AEM, automated tests can be an indispensable tool. You’re probably writing integrated tests and run them occasionally; even on your own box. However the tests are slow, quite difficult to write and often hard to maintain. When a test points you to a bug, you probably would like to write more of them, but time constraints don’t allow it and maintenance is a pain. You will probably end up duplicating test setups, data and even mocks all over the place, to get at least a few major use cases covered; knowing there must be a better way.

In this talk, you’ll learn how a unified testing API can accommodate tests on all levels, making test setups cost virtually nothing. How you can write complex setups within few lines and how you can split up integrated tests into unit tests easily. You’ll see how best practices for initializing, stubbing and mocking objects can be made consistently available, thus you can write more isolated tests and listen to their feedback more frequently

Also see Connect 2015.