Questions tagged [dredd]

Dredd is a command-line tool for testing API documentation written in API Blueprint format against its backend implementation.

From the github page of dredd:

Dredd is a command-line tool for testing API documentation written in API Blueprint format against its backend implementation. With Dredd you can easily plug your API documentation into the Continous Integration system like Travis CI or Jenkins and have API documentation up-to-date, all the time. Dredd uses the Gavel for judging if a particular API response is valid or if is not. If you are curious about how decisions are made, please refer to Gavel's behavior specification.

62 questions
0
votes
1 answer

How can I use a dredd docker image interactively?

I would like to use this docker container apiaryio/dredd instead of the npm package dredd. I am not familiar with running and debugging npm based docker images. How can I run the basic usage example of the npm package "Quick Start" section $ dredd…
thinwybk
  • 4,193
  • 2
  • 40
  • 76
0
votes
1 answer

npm install -g dredd seems to instal but dredd not working

I've installed dredd globally on mac os but when calling dredd it comes back command not found ➜ test git:(master) dredd zsh: command not found: dredd Not sure if this is being saved in the correct place or there's an extra step i'm missing. My…
0
votes
1 answer

Multiple requests with dredd yml

Using node dredd against my API. I opted for using yml file as this is a std that is familiar with my team. Here is an example snippet we have functioning correctly: /api/station/{id}: get: produces: - application/json;…
user1037355
0
votes
1 answer

Dredd failing to parse apiblueprint response body

My .apib document has the following response defined: 21 + Response 200 (application/json) 22 23 + Body 24 25 { 26 "Datetime: "2017-04-23T18:25:43.700Z", 27 "UserId": "1", 28 "Goal": "25", …
category
  • 2,113
  • 2
  • 22
  • 46
0
votes
1 answer

Adding negative tests to my dredd/hook CircleCI test suite (API document on apiary), Relevant? Other tools?

We are using dredd to test our API and have been making use of python hooks to successfully separate the API document and however dredd makes use of it from the rest of the test logic. My question is: is it possible to incorporate negative tests…
Shachar R
  • 311
  • 1
  • 2
  • 8
0
votes
1 answer

npm install -g dredd@stable fails on CircleCI due to npm ERR! code ECONNRESET

I have a project on CircleCI which started going red (due to failure on installing dredd) at some point. Currently the same exact project (same code, same circle.yml) may fail or succeed at random it seems. The failure is always in the phase npm…
Shachar R
  • 311
  • 1
  • 2
  • 8
0
votes
2 answers

Dredd Tests with MariaDB using TravisCI

Im trying to have travis run dredd tests during its build process. I realized that I will need to run mariaDB as part of the process. I am unsure how to create a table or insert sample data prior to dredd tests being run. I have added mariadb as an…
Jeff
  • 211
  • 3
  • 11
0
votes
1 answer

Mismatch with expected vs. actual results Dredd

Currently I'm running the uber.yaml found here. I'm currently getting mismatches on the actual versus expected values: expected: headers: Content-Type: application/json actual: statusCode: 301 headers: server: nginx date: Tue, 13 Dec 2016 20:32:28…
Mosinel
  • 155
  • 1
  • 9
0
votes
1 answer

Error with dredd hooks on Windows

I try use dredd with symfony on windows PC. i do next: i create folder dredd in symfony poject app dredd src vendor e.t.c in symfony composer.json i add "ddelnano/dredd-hooks-php":"dev" Next step, i create this dredd.yml dry-run:…
0
votes
2 answers

Dredd can't find my API documentation, how do i tell it where it is if it's not on my local drive (it's on apiary.io server)

I am using the Dredd tool to test my API (which resides on apiary.io). Question I would like to provide dredd with a path to my documentation (it even asks for it), however my API doc is on apiary.io but i don't know the exact url that points to it.…
Shachar R
  • 311
  • 1
  • 2
  • 8
0
votes
1 answer

Dredd configuration opposite of --only

Does anyone know if there is a possibility to excludes some transaction names while running the Dredd test? I know that the --only command can be used to define the wanted transactions, but I want the opposite.
0
votes
1 answer

Dredd seems to hang with api calls to asp.net kestrel server

When I run dredd, it seems to just hang after the first api call. I'm not sure how to debug or diagnose. I'm running an asp.net 5 mvc 6 api service with the dnx web command. How can I see what's going on or what the issue might be? I tried adding…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
0
votes
2 answers

Dredd-like tool for swagger?

Is there a tool like Dredd (for API blueprint) that can be used with Swagger schema? I would like to use such a tool to automate testing - have swagger schema files document my API, and then use such a tool to automate tests. The tool should have…
Yair Zaslavsky
  • 4,091
  • 4
  • 20
  • 27
0
votes
1 answer

Dredd passing trailing square bracket to API

I'm using Dredd to test an API I have written. It works fine until I try to vary the action uri within a resource. When I have an action of the form ## Retrieve Task [GET /task/{id}] it sends a request to Drakov with the ] appended. This Drakov…
-1
votes
1 answer

Dredd not killing main.go fix needed

I'm new to this tool and looking for help with what I'm sure is a common issue. As I understand dredd isn't able to kill processes that it started, for me this is main.go. My test feature is working great but the second time I obviously run into…
Kaigo
  • 1,267
  • 2
  • 14
  • 33