Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

📎 Generated playground links for tests #2618

Closed
Tracked by #2616
NicholasLYang opened this issue May 26, 2022 · 2 comments
Closed
Tracked by #2616

📎 Generated playground links for tests #2618

NicholasLYang opened this issue May 26, 2022 · 2 comments
Labels
A-Tooling Area: our own build, development, and release tooling task A task, an action that needs to be performed

Comments

@NicholasLYang
Copy link
Contributor

Description

Currently when I debug a failing test, I have to copy the code into a playground manually. Instead, we could have the link automatically generated. This could be pretty simple to implement, as stdout is only shown on a test failure, so we could just preemptively print a playground link and it'll show up on a test failure.

Playground links pass the code via a base64 encoded string appended to the url after a #. Therefore we could do something like:

format!("http://localhost:3000/#{}", code)

Note that we produce a localhost link, because play.rome.tools is main by default. We could also print out a command for starting the playground if necessary.

@NicholasLYang NicholasLYang added task A task, an action that needs to be performed A-Tooling Area: our own build, development, and release tooling labels May 26, 2022
@ematipico ematipico added the good first issue Good for newcomers label May 27, 2022
@MichaReiser
Copy link
Contributor

@NicholasLYang is the goal to create these links on CI test failures? It will be hard for others to contribute this behaviour because they aren't allowed to run CI jobs.

@MichaReiser MichaReiser removed the good first issue Good for newcomers label Jun 6, 2022
@github-actions
Copy link

This issue is stale because it has been open 14 days with no activity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Tooling Area: our own build, development, and release tooling task A task, an action that needs to be performed
Projects
Status: Done
Development

No branches or pull requests

3 participants