Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

--names option display is not completely accurate #607

Open
aledeg opened this issue Aug 17, 2016 · 3 comments
Open

--names option display is not completely accurate #607

aledeg opened this issue Aug 17, 2016 · 3 comments

Comments

@aledeg
Copy link

aledeg commented Aug 17, 2016

When using, the --names option, we have redundant information (when calls have different response) and we have missing information (when a call is skipped, the name is not displayed).

We should see only one line for redundant calls and we should see the name of the call even if marked as skipped.

@honzajavorek
Copy link
Contributor

Thanks! Just out of curiosity, can I ask which API description format do you use? Swagger or API Blueprint?

And yes, it looks like --names needs some revamp 😬

@aledeg
Copy link
Author

aledeg commented Aug 17, 2016

I am using API Blueprint!

@artem-zakharchenko
Copy link
Contributor

The --names should be implemented as a separate Dredd CLI command. I strongly suggest this to be done after #845.

Usage example

$ dredd names spec.apib

Output example:

./bin/dredd names test/fixtures/apiary.apib
POST (202) /machines
=> 'Machines > Machines collection > Create a Machine'

GET (200) /machines
=> 'Machines > Machines collection > Retreive all Machines'

PUT (200) /machines/willy
=> 'Machines > Machine > Update a Machine'

GET (200) /machines/waldo
=> 'Machines > Machine > Retrieve a Machine'

DELETE (204) /machines/waldo
=> 'Machines > Machine > Delete Message'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants