Skip to content

autodisable curl tests - #141

Merged
kkharji merged 2 commits into
kkharji:masterfrom
teto:autodisable-curl-tests
Jun 17, 2022
Merged

autodisable curl tests#141
kkharji merged 2 commits into
kkharji:masterfrom
teto:autodisable-curl-tests

Conversation

@teto

@teto teto commented Jun 17, 2022

Copy link
Copy Markdown
Contributor
  • 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.
Comment thread test/auto/db_spec.lua

describe(":select", function()
if vim.fn.executable("curl") then
pending("'curl' program is not available")

Copy link
Copy Markdown
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
Copy Markdown
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

teto commented Jun 17, 2022

Copy link
Copy Markdown
Contributor Author

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

kkharji commented Jun 17, 2022

Copy link
Copy Markdown
Owner

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

kkharji commented Jun 17, 2022

Copy link
Copy Markdown
Owner

@teto you would need a release right 😃

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

teto commented Jun 17, 2022

Copy link
Copy Markdown
Contributor Author

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