Skip to content

MatthiasKainer/contracts4components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Contracts4Components

NOTE: This project is a proof of concept and provides an example of how one could do something like this. It is not complete, does not handle other cases than the ones shown in the example and I'm currently not planning to extend it

This example supports only dom and react test framework at the moment.

The idea is to bring contract tests to the frontend world.

You can read more about it in my blog

Getting started

Clone this repo and run ./go setup

To start the server and run a suite of consumer and provider tests to populate the database, run ./go run.

The tests can be found in contracts4components.web/test.

The server

The server is available as a docker container, and can be started via

docker run -d -p 8097:8097 --name=contracts4components mkainer/contracts4components.server

Note that ./go run will do this for you automatically.

This will expose it on port 8097, check it out via http://localhost:8097/contracts.

For more infos, look into the Server Readme.

About

PoC for contract testing with components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published