-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
refactor(test_utils): Refactor test_utils
crate and add folder
support with updated documentation
#2487
Conversation
|
||
newman_command.arg("--delay-request").arg("7"); // 7 milli seconds delay | ||
|
||
newman_command.arg("--color").arg("on"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be a good idea to expose all postman run options via this CLI - might be useful at some time. things like delay-request
and timeout
would be useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! I'll raise another PR soon addressing this since this is already merged
Type of Change
Description
This PR completely refactors
Rustman
(newman-fork within Rust wrapper) that aims to de-clutter the runner thereby making it more readable and intuitive. Also, added support for runningfolders
individually instead of running the whole thing every time (If the folder that you wish to run does not containQuickStart
folder, it will be added automatically during run-time to avoidUnauthorized
errors).In addition to this, documentation has also been updated w.r.t the changes done.
Motivation and Context
This had to be done as many of the developers who were affected asked for it.
The main issue was that, if the Postman CI checks failed, there exist no way to do a RCA in an instant. You're forced to -- Manually check the failure point from the available logs from the CI, import the collection in Postman, run
QuickStart
followed by the folder causing the problem or anything as such since you cannot run individual folders through Test Utils (Rustman).Increased complexity in
main.rs
forced me to move it to another file.How did you test it?
Ran a specific folder and it worked without any issues:
Ran Stripe collection:
Checklist
cargo +nightly fmt --all
cargo clippy