-
Notifications
You must be signed in to change notification settings - Fork 17
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
tag tests that require network #631
Comments
I don't think In rocks (the rust package), we have a |
good to know !
So to check for an environment variable at the start of test and abort otherwise ? I think busted can be configured to run different sets of tests via either--exclude filters or tags which is an option that is better when files can mix impure and pure tests. |
I can run the tests successfully if I remove 6 out of the 7 files in spec/operations, just keeping parser_spec.lua
when you are in the sandbox, you reach the timeout since network fails, which made the tests extra longer. |
btw do we run the busted tests in CI? |
Yes, but with |
I am trying to run the busted tests in nixpkgs.
I managed to run the test from a devShell (unluckily I first started with
busted -l spec/
which didn't work for me ).I had to sandbox the call with
NVIM_APPNAME
otherwise the rocks.nvim from ~/.local/share/nvim was getting loaded instead of my checkout.I find the 2 minutes long. Is that expected ? I wonder how much of that was due to the plenary timeout.
Anyway, as mentioned previously, I am trying to run the tests in nixpkgs, which now fail due to sandboxing and no internet.
With busted, it's possible to provide customized test targets in
.busted
that match filenames or tagsit("Test with #internet tag")
. I have identified spec/operations/install_update_spec.lua for now but the feedback loop is long (vim.env.PLENARY_TEST_TIMEOUT = 60000 * 5
) . Shouldn't we reduce it and/or stop hardcoding it in the test so it can be customized before running the test ?The text was updated successfully, but these errors were encountered: