-
Notifications
You must be signed in to change notification settings - Fork 137
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
Update binding for test explorer for unittest #226
Conversation
https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-test-explorer test explorer is unittest adaptor, with VSpaceCode key bind we can make it easy to run unittest |
That's a great idea specially vscode released with the built-in testing API. The Hence, I think it would be better for us to use the official testing command in the long run. Can you change the commands to use the built-in testing commands? |
I see, let me have a try |
Some thoughts:
|
|
|
|
I think there are two options:
Maybe we should start with adding them in the major modes, and standardized it somewhat like https://vspacecode.github.io/docs/conventions. So this will be mostly like how spacemacs work. |
maybe we should use and I don`t think the native api should bind in major mode |
by the way, where can I get the list of |
This commits - Add `u u` to run unittest under cursor - Add `u t` to open test explorer - Add `u r` to redebug last unittest - Add `u d` to debug unittest under cursor - Add `u f` to debug failed test - Add `u l` to show unittest failed log - Add `u b` to run unittest in current file - Add `u c` to cancel running unittes
df5a4b4
to
a1a7226
Compare
We do have various other such bindings already though, e.g. the
https://code.visualstudio.com/api/references/icons-in-labels |
That's a good point especially testing api is not implemented by all language extensions. This feels similar to format commands in major mode where not all language implements all format commands. It's better to keep it in each language mode. We also have overrides for people who want to put testing top level.
Agree. It might be slow to add testing commands to each major mode; however, the testing commands in the major mode will guarantee to have testing support from the language extension. |
I suppose VSpaceCode/vscode-which-key#42 would solve this kind of thing? |
The slowness is from adding it into each specific major mode, and VSpaceCode/vscode-which-key#42 will help remove some of the redundancy of bindings in each major mode for example. |
Closing this in favor of #248 tracking tasks with the solutions that we discussed. |
This commits
t t
to open test explorert u
to run unittest under cursort d
to debug unittest under cursort r
to redebug last unittest