Giter Club home page Giter Club logo

contract-testing's Introduction

preface

This is a small project to demonstrate contract testing which was created as an example to lectures about mutation and contract testing. The slides are included in this repository. You can also find a commentary article in the links below:

https://medium.com/@mateusz.bryla/mutation-and-contract-testing-842c9571df82 https://codete.com/blog/mutation-and-contract-testing/

contract-testing

This is the demo project for Contract Testing for Java using Spring Cloud Contract. It consists of two Maven projects located in the java directory - a producer and a consumer. The prducer provides an endpoint for HTTP GET requests and answers with an echo response.

The producer project includes a contract which is listed as a dependency of the consumer. To see the example contract testing workflow please download the code sample, run mvn install in the producer project and then mvn test in the consumer project. Those commands will first generate contract verifying tests in the producer project, run them and then install contract stubs in the local Maven repository. The consumer project will then use WireMock to use them as a producer stub.

contract-testing's People

Contributors

mbryla avatar

Stargazers

Anna Anks Nowak avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.