Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Re-generate tests not overwriting changes #152

Closed
lcofre opened this issue Sep 5, 2017 · 3 comments
Closed

Re-generate tests not overwriting changes #152

lcofre opened this issue Sep 5, 2017 · 3 comments

Comments

@lcofre
Copy link

lcofre commented Sep 5, 2017

Thanks for this project!

Following your advice @baynezy in issue #148 I could generate the tests and run them with mocha.

Now my doubt is, How can I customize the tests (e.g. 'DATA GOES HERE' and 'PARAM GOES HERE' appear when parameters are defined in body and path, respectively) but allow to re-generate them when the API definition changes?

For query parameters I see a .env file that contains the variables I need to change.

Thanks in advance for your help!

@baynezy
Copy link
Contributor

baynezy commented Sep 5, 2017

@lcofre take a look at requestData parameter

@lcofre
Copy link
Author

lcofre commented Sep 6, 2017

Thanks very much! I configured the the tests through the requestData parameter.

Sorry for a question so easily answerable by reading the readme.

Thanks!

@lcofre lcofre closed this as completed Sep 6, 2017
@baynezy
Copy link
Contributor

baynezy commented Sep 6, 2017

@lcofre - no problem. That is the world telling us that we should have better documentation 😄

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

No branches or pull requests

2 participants