Skip to content

Show incremental progress when running tests #6407

Closed

Description

@tdamsma

When running many tests from the TEST:PYTHON sidebar, all tests are shown to be in progresss (spinning arrow) until all tests have been run.

It would be much nicer if the spinning arrow icon is updated as soon has the test has run. In the Python Test Log this information is readily available, so you can directly see which tests have passed, failed, are running now or are scheduled to be run.

Possibly related to #1718, but that is more about the spinner in the bottom bar

Activity

  1. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Jul 2, 2019
  2. MarekOzana commented on Nov 20, 2019

    @MarekOzana

    Is there any progress on this one? One needs to run all tests before discovering that any test failed. See below how PyCharm reports progress:
    pycharm-pytest-progress
    Thank you for your time.

  3. jahan01 commented on Jan 4, 2020

    @jahan01

    the real time updates to individual test's status was working in https://marketplace.visualstudio.com/items?itemName=LittleFoxTeam.vscode-python-test-adapter. I had used this extension before the MS python extension provided its own implementation of Test explorer

  4. brettcannon commented on Jul 24, 2020

    @brettcannon
    Member

    We are going through old issues and we noticed that no one from the team had replied to this issue. I want to apologize for the oversight and to let you know that the issue was reviewed by the team and triaged (as shown by the labels applied to this issue).

  5. MarekOzana commented on Jul 25, 2020

    @MarekOzana
  6. ItamarShDev commented on May 20, 2021

    @ItamarShDev

    This would be a major improvement. waiting for 100+ tests to finish before being able to know what failed is a big pain

  7. karrtikr commented on Jul 29, 2021

    @karrtikr

    Fixed by #16769 but only for unittest framework, not pytest.

  8. 3 remaining items

  9. ItamarShDev commented on Aug 24, 2021

    @ItamarShDev

    his will be done with the test adapter improvements for pytest. The UI itself now handles individual test progress.

    Can you please give us an update about the adapter status?

  10. fsteinmetz commented on Sep 14, 2021

    @fsteinmetz

    It's great to see the improvements in the test area !!
    The incremental test progress seems to work, but not always. When launching parametrized pytests through the gutter button, I see incremental status appearing. In the explorer, I can also click several tests, one by one, which are run in parallel with incremental progress. However, when running all tests in a file or in a project, the status only appears when all tests are done.

  11. ItamarShDev commented on Sep 14, 2021

    @ItamarShDev
  12. DmytroSokhach commented on Jan 19, 2022

    @DmytroSokhach

    This will be done with the test adapter improvements for pytest. The UI itself now handles individual test progress.

    Is there a specific area or issue exist for Test Adapter? Could you link it here please as all searches end up with current ticket.

  13. karthiknadig commented on Jan 19, 2022

    @karthiknadig
    Member

    Dmytro Sokhach (@DmytroSokhach) #17242 item tracks the progress on the test adapter re-write.

  14. geomlyd commented on Jun 22, 2023

    @geomlyd

    Has this been solved? I can't really see any sort of progress indication on parameterized pytests, and it is fairly frustrating when there's many of them and they take some time to run...

  15. eleanorjboyd commented on Jun 22, 2023

    @eleanorjboyd

    Hello! This will soon be a feature following our testing rewrite. Our rewrite is out on insiders using the setting "python.experiments.optInto": ["pythonTestAdapter"],. Once this PR is merged: #21466 and you enable the rewrite, this feature will work. The rewrite will progressively be shipped to more customers as we are shifting all users to the rewrite but are in the incremental stages at the moment.

  16. ItamarShDev commented on Jun 22, 2023

    @ItamarShDev
  17. eleanorjboyd commented on Jul 14, 2023

    @eleanorjboyd

    this is now out on stable with the experiment turned on and therefore I am closing this as resolved. Thanks!

  18. locked as resolved and limited conversation to collaborators on Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions