-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
Fix crash on renaming a floating pane (#1323) #1357
Conversation
Ideally we add some tests to avoid regressions, but to be honest, I hate writing tests and also the huge e2e test functions scared me away. |
dc7d56b
to
274dad5
Compare
That would be great! The e2e tests are indeed a bit of a handful (as such tests tend to be), but for this maybe you can add an integration test? https://github.com/zellij-org/zellij/blob/main/zellij-server/src/tab/unit/tab_integration_tests.rs Wdyt? |
Added some tests for renaming a floating and an embedded pane each. In case you are interested in my experiences adding tests: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaking Tab
into like... 17 different modules is totally on my list for the not too far future, I very much agree.
Otherwise about the tests - this is good feedback. Do you have suggestions about what we should change that would have made your experience easier?
This LGTM. Please feel free to merge, and don't forget to update the changelog.
Some high level dev docs or a guide on e.g. how to add a test would be super nice. But I totally understand if this maybe is too much to ask for, many projects do not have this and it can also be a maintenance burden since dev docs must be kept up-to-date on code changes. In general, when doing something for the first time and having no idea on how to approach it, it costs me quite a bit willpower and motivaton to work my way into it. A guide lowers this barrier because it shows a potential path through the problem space and familiarizes me with any new tools involved. |
No description provided.