Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: method in test-setup also executes the setup steps for that method #117

Open
cdmayer opened this issue May 20, 2016 · 1 comment

Comments

@cdmayer
Copy link

cdmayer commented May 20, 2016

Let's say I write an API that does A and AB, where AB relies on A. I then write test A', which has some setup steps. As I'm writing AB', it would be very useful to run A' including all its setup steps. Otherwise, I have to copy-paste the setup steps every time I call A' as a method.

@rgregg
Copy link
Contributor

rgregg commented May 20, 2016

I think you actually want to be able to execute another named scenario as a test-setup step for a scenario (whoa recursive possibilities). This would basically let you create multiple-test canned requests, except they're also test scenarios (thus tests can build on previous tests). Sounds cool.

Need to watch out for circular references.

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

No branches or pull requests

2 participants