Try a scenario from a pull request
Give a reviewer one link that opens the scenario a pull request changes, ready to try.
Print the link
Section titled “Print the link”Run rehearse open with the scenario’s id, as rehearse list shows it. It starts the stage when none is running, and
prints the scenario’s address.
$ rehearse open "greeting.hurl#The greeting says hello"http://127.0.0.1:4400/?s=greeting.hurl%23The%20greeting%20says%20helloThe stage started for it; stop it with kill 1348678.Paste the address into the pull request’s description, beside the line that says what changed.
Open it as the reviewer
Section titled “Open it as the reviewer”The stage runs on the reviewer’s own machine, so the link works where a stage for the pull request’s branch runs. Check the branch out, then start the stage on its default port.
git switch warmerrehearse stageOpen the link from the pull request. The stage shows that scenario in Base, Head and Diff, and Works and Doesn’t keep
what the reviewer says in .rehearse/tries.jsonl. Ctrl-C stops the stage and what it brought up.
When port 4400 is taken, the stage takes a free port, and the link needs that port instead. Running
rehearse open with the same id prints the right address. See the stage.