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 option to run a single test #211

Merged
merged 12 commits into from
Jun 23, 2023

Conversation

jitseniesen
Copy link
Member

This PR adds the menu item "Run only this test" to the context menu that appears when right-clicking on a test result. Selecting this menu item re-runs the associated test only, ignoring all the other tests.

singletest

Fixes #88

This attribute is no longer used after commit f61c5a5.
After commit 4d6e49d, the correct colours for dark/light interface are
chosen automatically inside Spyder proper, so we don't need any special
handling in the plugin.
Before the introduction of PyTestWorker, test names were taken from the
output of `pytest -v` and those names are relative to wdir. After, the
plugin displayed node ids which are relative to the pytest root dir.
This adds unnecessary information if the root dir is a parent of wdir,
so this commit reverts back to the earlier behaviour.
At the moment, this action is passed on to the UnitTestWidget, but it
simply runs all tests.
@jitseniesen jitseniesen added this to the v0.6.0 milestone Jun 21, 2023
@jitseniesen jitseniesen self-assigned this Jun 21, 2023
@jitseniesen jitseniesen merged commit dd684fe into spyder-ide:master Jun 23, 2023
14 checks passed
@jitseniesen jitseniesen deleted the single-test branch June 23, 2023 14:15
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.

Allow a user to run a specific unit test
1 participant