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(teatest/v2): use virtual terminal #250

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

feat(teatest/v2): use virtual terminal #250

wants to merge 11 commits into from

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Nov 8, 2024

This changes x/exp/teatest/v2 to use x/vt as its input/output.

This is effectively a breaking change, which should be ok as teatest is still experimental.

  • .Output() will now return a text representation of the current output, instead of what was written since the last call to it
  • .FinalOutput() is pretty waits for the program to exit and then calls .Output()

IMHO this is good, let me know what you think!

@aymanbagabas
Copy link
Member

@caarlos0 Could you split the changes into 2 PRs? It's hard to look at when for are in the same one 😄

@caarlos0
Copy link
Member Author

caarlos0 commented Nov 8, 2024

@caarlos0 Could you split the changes into 2 PRs? It's hard to look at when for are in the same one 😄

yes, will do once its stable 🙏🏻

Signed-off-by: Carlos Alexandro Becker <[email protected]>
Signed-off-by: Carlos Alexandro Becker <[email protected]>
@caarlos0 caarlos0 changed the title feat(vt,teatest/v2): wip feat(teatest/v2): use virtual terminal Nov 13, 2024
@caarlos0 caarlos0 added the enhancement New feature or request label Nov 13, 2024
@aymanbagabas
Copy link
Member

Could you rebase this onto vt

@caarlos0 caarlos0 changed the base branch from main to vt November 14, 2024 11:37
@caarlos0 caarlos0 changed the base branch from vt to main November 14, 2024 11:39
Signed-off-by: Carlos Alexandro Becker <[email protected]>
@caarlos0
Copy link
Member Author

Could you rebase this onto vt

i'm using vt@vt, it seems to have race conditions again 🤔

Signed-off-by: Carlos Alexandro Becker <[email protected]>
Signed-off-by: Carlos Alexandro Becker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants