-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add an option to run/debug all the parametrizations of a tests when clicking on "Run/Debug Test (Multiple)" #5608
Comments
This would be an nice feature! Maybe if there are multiple tests provide another code lens option like "Run all X Tests (Multiple)" or something like that, where X is the number of parametrized tests. EDIT: |
@luabud @brettcannon I think 3 code lenses for one single feature (testing) is too many. Suggestion: How about we drop |
I actually like the codelenses for parametrized tests so that you can select single tests to run or debug. Maybe as you said @DonJayamanne drop the |
This could also be another item (first item) in the drop down list, instead of adding another code lens. |
Yeah could also be a solution! I thought it would be more intuitive and fast that you don't have to click on Run Test and then move the mouse up to the drop down list to select that Run All command. Just my five cents ;) |
If you decide against the third code lens option i could work on the "Run All" drop down element! |
Woohoo 🎉 thanks @phloose for taking interest in this PR! |
OK, i will try and prepare something for that dropdown option! |
@DonJayamanne @luabud i opened a pull request for the discussed option. I am keen for input and improvements from your side! |
* Register new command for running parametrized tests * Show "Run All" or "Debug All" in dropdown picker on parametrized tests * Use CommandSource as input to second call of getNamesAndValues In the picker unit tests two calls to getNamesAndValues are used to extract values from enums. The second call used a generic with type 'CommandSource' but as input a Type object. To be more meaningful this has been changed to 'CommandSource' so that the test checks different TestItem types against different command sources. Otherwise it would test TestItem types against TestItem types. Furthermore extracting name and value of CommandSource.commandpalette with getNamesAndValues was not successful and returned undefined. This has been fixed by assigning CommandSource.commandpalette directly to commandSource.value when this command source is evaluated. * Add test for Tests_Run_Parametrized command * Add news entry for #5608
@luabud as the pull request got merged shouldn't this be closed? |
Yes, thanks for bringing it up :) |
We could add an option the drop-down menu for running all the parametrizations when clicking on the code lenses below:
The text was updated successfully, but these errors were encountered: