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

Change response status code #320

Open
nurbashanghai opened this issue Nov 19, 2021 · 2 comments
Open

Change response status code #320

nurbashanghai opened this issue Nov 19, 2021 · 2 comments

Comments

@nurbashanghai
Copy link

nurbashanghai commented Nov 19, 2021

Hey!
Hi guys! Great library! Love to use it!
My question is:
Is it possible to implement feature that will start test not only after status code 200 received? My dev server gives status 401. So it will be great if we can change it to something like "--status=401", it will indicate that after performing request to servers port, It will launch tests after receiving given status
Im talking about Line 93, can we add like custom status flag?

Screen Shot 2021-11-19 at 15 21 54

@pezholio
Copy link

This is something I need too, but I found an alternative is to have a healthcheck endpoint that always returns 200 and ping that. For example:

start-server-and-test start-feature http://localhost:3007/health test:e2e

@nurbashanghai
Copy link
Author

that's actually a pretty good solution :) probably need to rework some of my middleware's

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