Skip to main content

Tool for Thrift contract-consumer-driven testing

Project description

https://travis-ci.com/vtatai/ptcdt.svg?branch=master

PTCDT is a simple tool to enable Thrift contract/consumer-driven testing. It enables one to spin up a Thrift server which mocks replies based on a JSON contract definition.

Still under heavy development. Use it at your own risk. YMMV. If it doesn’t work, fix it!

Usage

Use pip:

pip install ptcdt

then:

ptcdt <CONFIG FILE>

The config file should have everything the server needs to run. For sample configurations check https://github.com/vtatai/ptcdt/tree/master/tests/configs

Development

Install all development deps:

pip install -e .[dev]

To run tests just call:

export PYTHONTEST=src
pytest
pytest --pdb # Very handy

I recomment using virtualenv + virtualenvwrapper for better env isolation. Also recommend iPython for command line.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ptcdt-0.0.3.dev10.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

ptcdt-0.0.3.dev10-py3.7.egg (16.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page