Skip to content

Files

Latest commit

 

History

History

tests

Tests

As per @ktrysmt's comment here tests are being changed so they can be run against both:

  1. The actual Bitbucket API
  2. The Swagger documentation from Bitbucket (https://bitbucket.org/api/swagger.json), using Stoplight's Prism

The latter will eventually be run as part of a CI process using Github Actions.

Running tests locally against the Bitbucket API

Please refer to ../README.md.

Running test locally against Prism

Run in a shell terminal:

docker run --rm -it -p 4010:4010 stoplight/prism:3 mock -h 0.0.0.0 https://bitbucket.org/api/swagger.json

Then in another shell terminal session run:

make test/swagger