Git Product home page Git Product logo

js-pact-tut's Introduction

npm run ctest to run consumer test, it will generate pact json into pacts directory.

npm run ptest to run provider test.

cd pact-broker && docker-compose up to run a local broker on port 8080.

npm run push to publish pacts into local pact broker.

js-pact-tut's People

Contributors

zhouqing86 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

itlixiaolong

js-pact-tut's Issues

请问下,是怎么解决超时的问题的?

@@按照您提供的这个项目,运行npm run ctest时,开始报错为“UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Couldn't start Pact with PID: 269492”,然后就加了一个catch处理异常,异常信息如下:
Error: Couldn't start Pact with PID: 299452
at Timeout._onTimeout (D:\Demo\pact\test201\node_modules\pact\node_modules\q\q.js:1843:21)
at ontimeout (timers.js:488:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:283:5) code: 'ETIMEDOUT'

请问下您,有没有出现这样的问题?这样的问题,是否是我少配置了什么参数吗?还是其他的什么原因?(设置了一个很大的timeout一直没用,始终提示错误信息!)。还请您帮忙解答下这个问题!谢谢! @zhouqing86

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.