Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Update tests for sendTerminal operations when can check terminal updates #50

Open
bfitzpat opened this issue Feb 6, 2020 · 0 comments

Comments

@bfitzpat
Copy link
Collaborator

bfitzpat commented Feb 6, 2020

While working on #46 we tried writing tests to ensure that the methods sendTerminalCtrlC and sendTerminalText are actually working properly. It turns out we don't have a clean way (beyond relying on "side effects" like creating a file via a command-line call and checking to see if the file is created) to simply watch for terminal output.

It appears that a new listener method is coming. @lhein found this https://stackoverflow.com/questions/57630371/how-to-use-terminal-api-to-listen-to-all-terminal-output-in-vscode which seems to be in the Insiders build. Once it appears in a public API form, maybe we can use it to watch for data changes in terminals.

When that occurs, we need to update the tests in the extensionFunctions.test.ts added by #47

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant