-
Notifications
You must be signed in to change notification settings - Fork 271
test: allow running locally in isolated environment #413
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
Conversation
|
This is pretty nice. My only concern is that it does not support Windows and we do get contributions from Windows users. I'm not sure if they run the tests or not, or maybe just rely on the Action anyhow. Are there any Windows users watching this that want to comment? |
|
Maybe use something like |
|
or maybe use a docker container to run the tests? Is docker as ubiquitous as python yet? |
Docker on windows runs in WSL, so you wouldn't actually be testing "on Windows", you'd be testing "on Linux" |
Duh, that would not be all that helpful, now would it? The script is simple enough that we could probably just add a ps1 or bat script that copies the functionality. I'm leaning towards that. @MunifTanjim could you add that or convert it to python? If you don't have an environment setup on Windows I can write it from memory and let the next windows contributor actually test it out. We can also add an "is windows" switch in the test setup that reverts to the old code on Windows. |
If we want to support running it on powershell (or whatever the default is on windows), I think that is a separate piece of work? I'm not motivated/equipped to work on that. Maybe somebody using windows can add another small script for windows later?
Those would just be increasing the complexity. The simpler solution would be to:
|
I would like to avoid it very much, if I can 😂
I'm not sure what you mean by "old code". The script just clones the plugins in a specific directory. If another script does the same thing on windows, shouldn't everything just work? 🤔 |
|
btw, I just wanted to run the tests locally without any hassle. That's the motivation behind this PR. Adding python or docker in the mix would increase the hassle instead of decreasing it. Python or Docker has nothing to do with this project and I don't think we should be forcing the contributors to have those installed just to run the tests locally. If we want to support Windows, there are simpler ways (mentioned here). Also it was not supported to run the tests locally at all. So not supporting windows probably shouldn't be a blocker for now? 🤔 |
I agree about python or docker. A bat or ps1 would probably be easiest if git bash doesn't work.
The test did run locally before. It used to be |
Ah, yes... I use Did it work on windows before? 🤔 Well, in that case it is a blocker 😂 Sorry for the confusion. Converting the PR to draft for now. |
4018d1d to
369cbb0
Compare
|
@cseickel |
cseickel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Running
./scripts/test.shwould:nui.nvim,plenary.nvim) if not already installed./.testcachedirectory)Running
./scripts/test.sh --cleanwould:./.testcachedirectory before running the test and reinstall plugins