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

Support deletion of test cases #7

Open
chiiya opened this issue Feb 18, 2019 · 0 comments
Open

Support deletion of test cases #7

chiiya opened this issue Feb 18, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@chiiya
Copy link
Owner

chiiya commented Feb 18, 2019

We should add support for the deletion of test cases. As an example: sometimes query parameters might be incompatible and the server might return a client error if the request contains both of the parameters. It's not possible currently to specify this case in the API specification, and thus comet will generate a test case covering this scenario. The user should be able to delete the test case, and it should not be re-generated the next time comet is run. A proposal would be:

Have a .history or .lock file or something similar where we store a dictionary of all test case names, with an associated boolean value. The procedure when creating a test case in the decorator would be:

  1. Check if the test case has an entry in the lock file.
  2. If it does, and its value is false, do not create the test case.
  3. If it does not, create the test case.
  4. If it does, and its value is true, check the relevant file generated last time, and check for the existance of that test case. If it exists, go ahead and create the test case. If it does not exist, update the lock file (change corresponding value to false) and do not create the test case.
@chiiya chiiya added the enhancement New feature or request label Feb 18, 2019
@chiiya chiiya self-assigned this Feb 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant