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

[Feature request] Ability to run test under cursor or selection. #184

Closed
predragnikolic opened this issue May 24, 2020 · 1 comment
Closed

Comments

@predragnikolic
Copy link

This is an awesome plugin, but there is always room for a little improvement. :)

While I was writing test I noted that I can't run single test functions.
If I write new test, I needed to test the whole file and wait at least 10 sec(there are a lot of tests) to see the output of my newly written test.

That is the reason why I opened up this feature request.

Given we have a test file:

# | - is the cursor 

class SomeTests(DeferrableTestCase):
    def setUp(self) -> 'Generator':
        self.view = sublime.active_window().new_file()

    def test_is_false(self) -> None:
        self.assertFalse(False)

    def test_is_true(self) -> None:
        self.assertTrue(true) |  # <-- the cursor

    ...
    # imagine we have 42 test below

and the cursor is in the test_is_true function.

If we run a command UnitTesting: Test selected function
only the test test_is_true should be run.

Is this feature request doable?

@predragnikolic
Copy link
Author

I will close this issue, as it is now a bit stale and haven't gotten any traction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant