-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Proposal: use more tests #156
Comments
The current plan is to add tests as we go, mocha was only just added so the more tests you can contribute in PRs, the better. |
I have some xterm output comparison tests, can try to apply them. They are high level therefore it will be tricky to spot the faulty piece of code with just those. |
Added the xterm tests --> jerch@36930e9 |
That's great @jerch and it's definitely a very good start. Even getting 10 out of 44 vttest tests passing at first we will at least now if a PR breaks any of these (and there it will be much easier to debug the code). I am really looking forward to seeing these tests incorporated in xterm.js. Please let me know how can I help you out with this. |
Had a closer look at the current escape sequence parsing. My test cases cant be applied to it, they are not compatible state and transition-wise. The parsing doesn't fit into Paul's reference parser model, therefore I'm not sure if the parser always does the right thing (Paul claims to have the most complete model). Up for discussion, since it would need a really big re-factoring to get it in line.... |
@parisk Well the xterm tests would have to be tested and fixed one by one. You can select a specific test case by altering the for loop in the test file and switch the noisy output on to compare the outputs. |
I don't think there's any benefit keeping this open anymore since it's just a general "add more tests" issue, we've been steadily adding tests as we touch things and through PRs and will continue to do so. If there is a particular area in need of tests then a specific issue can be filed on that. Thanks for helping push this along @jerch |
The emulator is a fairly complex beast already and has like no test cases. Do you have any plans for testing xterm.js?
I feel a bit uneasy about playing with the code and making PRs with literally no chance to spot regressions at least. For example those #145 and #147 issues are candidates for fixing a problem while introducing a bigger one at some random place.
The text was updated successfully, but these errors were encountered: