Skip to content
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

feat(forge test): realtime console.log #9916

Open
outwrit opened this issue Feb 18, 2025 · 2 comments
Open

feat(forge test): realtime console.log #9916

outwrit opened this issue Feb 18, 2025 · 2 comments
Labels
C-forge Command: forge Cmd-forge-script Command: forge script Cmd-forge-test Command: forge test T-feature Type: feature

Comments

@outwrit
Copy link

outwrit commented Feb 18, 2025

Component

Forge

Describe the feature you would like

waiting for tests to finish before showing any console.log is not a great experience

Additional context

No response

@outwrit outwrit added T-feature Type: feature T-needs-triage Type: this issue needs to be labelled labels Feb 18, 2025
@github-project-automation github-project-automation bot moved this to Todo in Foundry Feb 18, 2025
@grandizzy grandizzy added T-to-investigate Type: to investigate and removed T-needs-triage Type: this issue needs to be labelled labels Feb 20, 2025
@zerosnacks zerosnacks changed the title realtime console.log feat(forge test): realtime console.log Feb 20, 2025
@zerosnacks zerosnacks added C-forge Command: forge Cmd-forge-test Command: forge test labels Feb 20, 2025
@grandizzy
Copy link
Collaborator

Thank you! We're going to investigate how cargo implements this and come up with something similar (event based / --show-output) + look into update the way inspector is used.
Also will consider to reuse for scripts progress / output.

@zerosnacks zerosnacks added the Cmd-forge-script Command: forge script label Feb 20, 2025
@grandizzy grandizzy removed the T-to-investigate Type: to investigate label Feb 20, 2025
@grandizzy
Copy link
Collaborator

@outwrit as an workaround you can write logs in file and tail then in real-time. Here's a sample of how you could do that, you can use files per test to make it better

function testWriteLine() public {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-forge Command: forge Cmd-forge-script Command: forge script Cmd-forge-test Command: forge test T-feature Type: feature
Projects
Status: Todo
Development

No branches or pull requests

3 participants