swagin icon indicating copy to clipboard operation
swagin copied to clipboard

Integration tests

Open c4s4 opened this issue 2 years ago • 0 comments

In order to check that code works as expected, I have coded integration tests using Venom. To run them:

$ cd examples
$ go test

Tests are in files examples/test/.yml* and are quite self explanatory:

request:
  url: "{{.URL}}/noModel"
  method: GET
response:
  statusCode: 200
  json: null

request entry describes request and response describes assertions made on response.

Note that these tests pass on master branch but fail on dev. Adding them would be a great way to check automatically that everything works fine.

c4s4 avatar Mar 30 '22 10:03 c4s4