WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

Demo: using contract testing to bridge the gap between unit and integration tests

  • 1.  Demo: using contract testing to bridge the gap between unit and integration tests

    Posted Tue November 03, 2020 09:04 AM
    I recently did a session on Lets Code which might interest this community. I talk about some of the dos, don't, and whys of application modernisation. In a microservices context, testing has some unique challenges. Unit tests are always important, and there should be a lot of them - but they can't catch integration bugs. Integration tests give great confidence that the whole system works as intended, but they're complex to run. This is where consumer-driven contract tests come in; they test the seams in the application, without the expense of integration tests. As well as validating the relationship between services, a good contract test framework acts as a super-handy mock for testing the consumer, and a 'for free' test suite for service providers. I demo a simple app dev scenario to show how Pact (a contract test framework) can help: https://techtv.bemyapp.com/#/conference/5f7230a8c0311b001bf90329

    ------------------------------
    Holly Cummins
    IBM Garage
    ------------------------------