Skip to content

vtatai/ptcdt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PTCDT

image

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.

About

Contract/consumer-driven testing tool for Thrift

Resources

License

Stars

Watchers

Forks

Packages

No packages published