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] Support streaming results with unittest #39

Open
valentingregoire opened this issue Nov 20, 2022 · 7 comments
Open

[Feature Request] Support streaming results with unittest #39

valentingregoire opened this issue Nov 20, 2022 · 7 comments
Assignees

Comments

@valentingregoire
Copy link

When running all unit tests in a class, you can see a loading indicator in the summary view. It would be nice that each method gets updated when they are finished. Currently, only after the very last test, all the loading indicators will stop simultaneously and the ouput_panel will be populated with the output of all tests at once. If the output and the loading indicators get updated per test, you have an indicator of progress through the class.

@jfpedroza
Copy link

That behavior depends on whether the adapter supports streaming results. Adapters that do support it, behave like that.

What adapter are you using?

@valentingregoire
Copy link
Author

I am using neotest-python with unittest as a runner (and dap = { justMyCode = false}).

@rcarriga
Copy link
Collaborator

Ah yep neotest-python only supports streaming results with pytest. If you can, I'd say to move over to pytest because the support is better in multiple ways but also happy to take PRs to add support for unittest streaming.

@rcarriga rcarriga transferred this issue from nvim-neotest/neotest Nov 22, 2022
@rcarriga rcarriga changed the title Sequential update in summary and output_panel [Feature Request] Support streaming results with unittest Nov 22, 2022
@valentingregoire
Copy link
Author

Ah yep neotest-python only supports streaming results with pytest. If you can, I'd say to move over to pytest because the support is better in multiple ways but also happy to take PRs to add support for unittest streaming.

Ok, I understand that unittest does not support streaming results. Pytest for my case doesn't work, or I fail to configure it properly.

@rcarriga
Copy link
Collaborator

I'll keep this open, I'll try get to it at some stage 😄

@rcarriga rcarriga reopened this Nov 23, 2022
@afrischk
Copy link
Contributor

afrischk commented Dec 9, 2023

If you can give me some pointers I could take over as result streaming would be similar to django unit test result streaming. It uses the unit test TestRunner under the hood.

@valentingregoire
Copy link
Author

valentingregoire commented Dec 12, 2023 via email

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

4 participants