chitamoor / Rester

Testing RESTful APIs
MIT License
85 stars 34 forks source link

supporting comments in json test files #16

Open asmodehn opened 8 years ago

asmodehn commented 8 years ago

This would be useful to add some human explanation to long test cases.

briandowns commented 8 years ago

Would it make more sense to just use YAML for the test case since YAML supports comments natively?

asmodehn commented 8 years ago

For this specific reason I started using Rester by writing Yaml tests.

But then I had to put complex json data, and copy pasting the payload from a browser debugger to a text file is much easier than manually converting that json to yaml. Nowadays all my tests are json files.

But I dont know if a Yaml file would support json payload actually... Maybe it was just me misunderstanding how rester tests can work... something worth testing & documenting i think...

Probably the best case is having the Yaml able to include json data, but I m not sure the way asserts are done would work well in that case... On Jan 20, 2016 2:22 AM, "Brian Downs" notifications@github.com wrote:

Would it make more sense to just use YAML for the test case since YAML supports comments natively?

— Reply to this email directly or view it on GitHub https://github.com/chitamoor/Rester/issues/16#issuecomment-172924584.