Write cool scalable enterprise application tests with Xtend & embedded DSLs
Unit testing large enterprise applications can quickly become a nightmare:
- hundreds of lines of code to test a single use case
- introducing one simple change in the logic breaks tons of unrelated tests
- nobody wants to maintain tests and you start to @Ignore it
Don’t panic! Using modern techniques together with Eclipse's Xtend and cool embedded DSLs, we can significantly improve maintainability and readability of your tests, and drastically reduce the test codebase.
In this session, first we talk about different kinds of tests and discuss common issues present in conventional unit testing. Then we will address those issues using modern technologies and techniques:
- Xtend will save us a lot of boilerplate code and enable embedded DSLs
- XFactory will provides us with a scalable and maintainable way of creating and persisting JPA-entities
- JMockit-Xtend will give us a new elegant way of mocking
- Separation between unit, persistent, and integration tests will improve our runtime test performance and test coverage.
In short, you will learn how to write elegant tests and have fun while doing it!
This session will include a lot of live coding.
Slides
Talk_2014_10-ECE-Write-cool-scalable-enterpr