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

PR: Add config option to abbreviate test names #208

Merged
merged 5 commits into from
Jun 21, 2023

Conversation

jitseniesen
Copy link
Member

Currently, test names in the "Unit testing" pane are abbreviated, so for instance "spyder_unittest.backend.tests.test_abbreviator.test_abbreviator_with_one_word" is shown as "s.b.t.test_a.test_abbreviator_with_one_word".

This PR adds a config option to control whether test names are abbreviated. The default is not to abbreviate (contrary to the current situation), because several users complained and nobody said that they like it.

Screenshot of new Preferences pane for the plugin:

unittest-prefs

Fixes #122.

That function assumes that the Python path manager plugin is
present, which does not need to be the case.
My guess from the feedback is that this is what most users want.
@jitseniesen jitseniesen added this to the v0.6.0 milestone Jun 2, 2023
@jitseniesen jitseniesen self-assigned this Jun 2, 2023
@ccordoba12
Copy link
Member

A quick suggestion about this PR: the unit test plugin is using the same icon as the Profiler. Could it be possible to use a different one here?

@jitseniesen
Copy link
Member Author

Of course that's possible, any suggestions on which icon to use? Here are pictures with mdi.test-tube:

unittest-prefs

run-menu

@ccordoba12
Copy link
Member

Looks good to me, thanks @jitseniesen!

@jitseniesen jitseniesen merged commit c30c21d into spyder-ide:master Jun 21, 2023
@jitseniesen jitseniesen deleted the config-abbrev branch June 21, 2023 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Config option to disable abbreviations
2 participants