about summary refs log tree commit diff stats
path: root/tests/by-name/nv/nvim-checkhealth/test.desc
blob: 66f87cf4fe04ce4505e7996f8c068b43e78c2161 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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