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

Testing terminal frontend. #763

Open
ethercrow opened this issue Jun 1, 2015 · 1 comment
Open

Testing terminal frontend. #763

ethercrow opened this issue Jun 1, 2015 · 1 comment

Comments

@ethercrow
Copy link
Member

I've just read http://www.drmaciver.com/2015/05/using-tmux-to-test-your-console-applications/ and can think of three kinds of tests that can be written in this manner.

  1. Tests for frontend display. These feed the frontend Editor values and check that resulting "screenshots" are equal to expected ones.
  2. Tests for frontend handling user input. These call tmux send-key blah and check that correct Event values come in from the frontend.
  3. Tests for the whole editor as an interactive application, keys come in, screenshots come out. Timing things here will probably be interesting too.

I don't know if travis jobs would handle tmux sessions though.

@Fuuzetsu
Copy link
Member

Fuuzetsu commented Jun 1, 2015

As the linked post says, probably want a library that does this in the background and then we can use that.

I don't see any reason why we couldn't do tmux sessions on travis.

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

No branches or pull requests

2 participants