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

autodisable curl tests #141

Merged
merged 2 commits into from
Jun 17, 2022
Merged

autodisable curl tests #141

merged 2 commits into from
Jun 17, 2022

Conversation

teto
Copy link
Contributor

@teto teto commented Jun 17, 2022

  • added .editorconfig
  • tests: autodisable test in absence of curl

Matthieu Coudron added 2 commits June 17, 2022 11:11
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")
Copy link
Owner

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?

Copy link
Contributor Author

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.

@teto
Copy link
Contributor Author

teto commented Jun 17, 2022

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.

@kkharji
Copy link
Owner

kkharji commented Jun 17, 2022

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

@kkharji kkharji merged commit 6c00ab4 into kkharji:master Jun 17, 2022
@kkharji
Copy link
Owner

kkharji commented Jun 17, 2022

@teto you would need a release right 😃

@teto teto deleted the autodisable-curl-tests branch June 17, 2022 13:04
@teto
Copy link
Contributor Author

teto commented Jun 17, 2022

yes that would help ^^. I can always test with a fork but that takes more time.

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

Successfully merging this pull request may close these issues.

2 participants