start-server-and-test icon indicating copy to clipboard operation
start-server-and-test copied to clipboard

Change response status code

Open nurbashanghai opened this issue 3 years ago • 2 comments

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

nurbashanghai avatar Nov 19 '21 09:11 nurbashanghai

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

pezholio avatar May 18 '22 12:05 pezholio

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

nurbashanghai avatar May 18 '22 13:05 nurbashanghai