-
Notifications
You must be signed in to change notification settings - Fork 29
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
autodisable curl tests #141
Conversation
teto
commented
Jun 17, 2022
- added .editorconfig
- tests: autodisable test in absence of curl
to ease contributing to the project
When running the test in the nix sandbox, there is no internet access and this specific test fails. The best solution would probably be to download these files only when they dont exist. The current fix skips the test when curl is not available and allows to move on.
@@ -546,6 +546,10 @@ describe("sqlite.db", function() | |||
end) | |||
|
|||
describe(":select", function() | |||
if vim.fn.executable("curl") then | |||
pending("'curl' program is not available") |
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.
what's pending 🤔 , part of busted framework?
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.
yes. To test you can replace curl with dadadsadad
to fail the condition and check the output.
I've copied the .editorconfig from neovim because by default I was adding tabs to the file. I can drop it if you dont like it. |
no, that's fine, I don't mind it |
@teto you would need a release right 😃 |
yes that would help ^^. I can always test with a fork but that takes more time. |