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

Container Support #71

Open
ddkasa opened this issue Mar 26, 2024 · 2 comments
Open

Container Support #71

ddkasa opened this issue Mar 26, 2024 · 2 comments

Comments

@ddkasa
Copy link

ddkasa commented Mar 26, 2024

Is there a possibility of adding container support for running tests inside a docker/podman instance.
For example running a command like $ docker compose run --rm django coverage run -m pytest with Neotest and viewing results inside Neovim?

I see there is nvim-neotest/neotest#89 which shows a workaround for rspec, but this extension would need a bigger workaround it seems.

@Rich107
Copy link

Rich107 commented Dec 4, 2024

Came here looking for answers :(

Are there any work arounds ?

Would love to be able to just run docker compose up

Then docker compose exec pytest with neotest.

@navignaw
Copy link

navignaw commented Dec 7, 2024

I haven't been able to get this integrated into neotest directly, but I've had some success with https://github.com/esensar/nvim-dev-container and just running pytest as a command inside the devcontainer. It ends up printing test output in a new tab rather than the nice neotest UI, but was good enough for me.

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

3 participants