diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-24 18:03:06 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-24 18:25:00 +0100 |
commit | 6c0646e1d6050338aa20c8eecb00c7e5f96b4afe (patch) | |
tree | ffe5f2c076602feb1545d19276ee09aa74419c3d /tests/by-name/nv/nvim-checkhealth/test.desc | |
parent | tests(infrastructure/driver): Support setting the golden file (diff) | |
download | nixos-config-6c0646e1d6050338aa20c8eecb00c7e5f96b4afe.zip |
tests(tests/nvim-checkhealth): Init
Diffstat (limited to '')
-rw-r--r-- | tests/by-name/nv/nvim-checkhealth/test.desc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/by-name/nv/nvim-checkhealth/test.desc b/tests/by-name/nv/nvim-checkhealth/test.desc new file mode 100644 index 00000000..66f87cf4 --- /dev/null +++ b/tests/by-name/nv/nvim-checkhealth/test.desc @@ -0,0 +1,22 @@ +# Give the shell time to start up +Sleep 2 + +# We open a `*.norg` file to run the norg ftplugin. +Type nvim test.norg --headless "+set nospell" "+checkhealth" "+w! health.log" +q +wa +qa +Sleep 0.5 +Type Enter + +# TODO: The test system should be able to just wait until a command has finished. <2024-11-23> +# Wait until `nvim` has collected the health check. +Sleep 240 + +# The `checkhealth` output is not reproducible. +# Thus only output the warnings/errors. +Type batgrep --ignore-case 'warning|error' health.log > new_golden +Sleep 0.5 +Type Enter +Sleep 2 + +SetGolden new_golden + +# vim: ft=tape |