You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior: The server should be stopped after responding, no matter it is a success or a failure
Actual behavior: The server will only be stopped when it returns 2xx status code.
Dear Contributors / Authors
Thanks for your great work. This project is a vital package for my unit test projects.
I am not sure if I did something wrong. But according to my test, this software will only be stopped when the server returns 2xx success status code. In one of my project, my server returns on purpose with a 5xx or 4xx code on some specified condition. I would like to test: 1. If it does returns a proper 4xx or 5xx code; 2. When it does, if it returns with a correct information in message body or HTTP headers.
However, it seems that start-server-and-test will retry the request if the server returns a failure, which makes that it is impossible to test on our error handling part.
I am not sure if this behavior is by designing or not. I am looking forward to hearing from you.
Best regards,
Kyle Chine
The text was updated successfully, but these errors were encountered:
Currently, I have to keep my test code only for 2xx responses. It seems no perfect solution if I don't want to touch the start-server-and-test code itself.
Bug Report
Dear Contributors / Authors
Thanks for your great work. This project is a vital package for my unit test projects.
I am not sure if I did something wrong. But according to my test, this software will only be stopped when the server returns 2xx success status code. In one of my project, my server returns on purpose with a 5xx or 4xx code on some specified condition. I would like to test: 1. If it does returns a proper 4xx or 5xx code; 2. When it does, if it returns with a correct information in message body or HTTP headers.
However, it seems that
start-server-and-test
will retry the request if the server returns a failure, which makes that it is impossible to test on our error handling part.I am not sure if this behavior is by designing or not. I am looking forward to hearing from you.
Best regards,
Kyle Chine
The text was updated successfully, but these errors were encountered: