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

Editing a test file causes the code lenses to jump around #5817

Closed
DonJayamanne opened this issue May 28, 2019 · 4 comments
Closed

Editing a test file causes the code lenses to jump around #5817

DonJayamanne opened this issue May 28, 2019 · 4 comments
Labels
area-testing bug Issue identified by VS Code Team member as probable bug

Comments

@DonJayamanne
Copy link

Identify cause and possible solution.
Do other extensions have the same issue?

This has been reported a number of times in the past, and users have hence requested for the ability to turn these code lenses off.

@ghost ghost added the triage-needed Needs assignment to the proper sub-team label May 28, 2019
@DonJayamanne DonJayamanne self-assigned this May 28, 2019
@DonJayamanne DonJayamanne removed their assignment May 28, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label May 28, 2019
@DonJayamanne DonJayamanne added area-testing reason-preexisting bug Issue identified by VS Code Team member as probable bug labels May 28, 2019
@rogererens
Copy link

rogererens commented Sep 22, 2019

Maybe you can show the code lense after the colon of the test_function definition. That would prevent the jumping of lines up and down. E.g.
def test_increment(): Run Test|Debug test
Or in front of the 'def':
Run Test|Debug test def test_increment():

@vapoto
Copy link

vapoto commented Dec 4, 2019

This is incredibly annoying! @rogererens's suggestions would look a bit inconsistent with the rest of the UI IMO. I would prefer a way to disable these code lenses until this problem is fixed.

@ctholho
Copy link

ctholho commented Mar 12, 2020

I had this issue today: Jumpy code lense for pytest.

My project is a client folder with a vue app without a test suite. Then I added a server folder containing the basic set up for a fast api with a python enviroment managed by pyenv (via poetry). Python 3.8.1 and pytest. My workspace file was in the client sub folder.

There are two folders in the test tab of the side bar. The one for client was empty and the one for server had the one or two basic pytest tests to start off a project. The tests worked allright and everything was fine except the constant toggling on and off of the code lense.

I since then switched to two different workspaces one for client and one for server and the problem is gone.

@luabud
Copy link
Member

luabud commented Feb 16, 2021

Closing in favour of #10898.

@luabud luabud closed this as completed Feb 16, 2021
@ghost ghost removed the needs PR label Feb 16, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

5 participants