Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Testing Dropwizard
Michał Rutkowski (mrutkowski@yammer-inc.com)
Challenge
Assume
Before deploying we would like to test
Solution: dropwizard-testing-integration
End-to-end service test as opposed to unit and resource
tests:
- Allows you to st...
Example: setup
Example: teardown
Example: tests
How to get it?
https://github.com/yammer/dropwizard-testing-integration
Caveats
• We needed to hack a bit, to reset static state.
• Flaky with more than one instance being started at the
same ti...
Future
• Integrate the functionality into DW
• Would be useful if DW had no static state
Upcoming SlideShare
Loading in …5
×

Integration testing dropwizard

2,293 views

Published on

An introduction to the dropwizard 0.62 integration testing library.

Published in: Software
  • Be the first to comment

Integration testing dropwizard

  1. 1. Testing Dropwizard Michał Rutkowski (mrutkowski@yammer-inc.com)
  2. 2. Challenge
  3. 3. Assume
  4. 4. Before deploying we would like to test
  5. 5. Solution: dropwizard-testing-integration End-to-end service test as opposed to unit and resource tests: - Allows you to start and stop the dropwizard instance programmatically - Compatible with DW 0.62 - Use it to run integration tests in your build
  6. 6. Example: setup
  7. 7. Example: teardown
  8. 8. Example: tests
  9. 9. How to get it? https://github.com/yammer/dropwizard-testing-integration
  10. 10. Caveats • We needed to hack a bit, to reset static state. • Flaky with more than one instance being started at the same time. • Only tested to work with DW 0.62 • Be careful how you pull in dependency clients
  11. 11. Future • Integrate the functionality into DW • Would be useful if DW had no static state

×