luaModules.neotest: enable checks and fix

This commit is contained in:
PerchunPak 2024-09-11 11:02:55 -05:00 committed by Austin Horstman
parent 22b4614665
commit b19131c832
No known key found for this signature in database

View File

@ -545,8 +545,7 @@ in
});
neotest = prev.neotest.overrideAttrs(oa: {
# A few tests fail for strange reasons on darwin
doCheck = !stdenv.isDarwin;
doCheck = true;
nativeCheckInputs = oa.nativeCheckInputs ++ [
final.nlua final.busted neovim-unwrapped
];
@ -560,7 +559,7 @@ in
export LUA_PATH="./lua/?.lua;./lua/?/init.lua;$LUA_PATH"
nvim --headless -i NONE \
--cmd "set rtp+=${vimPlugins.plenary-nvim}" \
-c "PlenaryBustedDirectory tests/ {}"
-c "PlenaryBustedDirectory tests/ {sequential = true}"
runHook postCheck
'';