Open KiaraGrouwstra opened 6 months ago
Some tests depend on the default colorscheme of nvim and that changed between 0.9 and 0.10. I have now added code to deactivate these tests in the flake and in ci so they should be "green" again. The actual issue is still unresolved. There are several possible solutions:
I am undecided which I want to do, I think I prefer 1 or 2.
I have introduced a temporary workaround for this issue: The failing test are all marked and can be skipped when running the tests. With 738a81ec729418a7029e099bff91c255606ab59f you can deactivate them with the busted tag v10
. For example run make tests BUSTED='busted --exclude-tags=v10
.
I do not consider this fixed. The skipping of the broken tests is only a workaround.
on nixos this package went from green to red as per
git bisect
on aneovim
update from 0.9.5 to 0.10.0. it would be nice to see nvimpager account for this update.test failing on this update:
``` ok 1 - auto mode selects cat mode for small files ok 2 - auto mode auto mode selects pager mode for big inputs not ok 3 - cat mode displays a small file with syntax highlighting to stdout # test/nvimpager_spec.lua @ 56 # Failure message: test/nvimpager_spec.lua:59: Expected objects to be equal. # Passed in: # (string) '# a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # ' # Expected: # (string) '# a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # ' not ok 4 - cat mode reads stdin with syntax highlighting # test/nvimpager_spec.lua @ 62 # Failure message: test/nvimpager_spec.lua:67: Expected objects to be equal. # Passed in: # (string) '# a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # ' # Expected: # (string) '# a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # ' ok 5 - cat mode returns ansi escape sequences unchanged not ok 6 - cat mode handles color schemes with a non trivial Normal group # test/nvimpager_spec.lua @ 76 # Failure message: test/nvimpager_spec.lua:80: Expected objects to be equal. # Passed in: # (string) '\ss should be ß # ' # Expected: # (string) '\ss should be ß # ' not ok 7 - cat mode highlights all files # test/nvimpager_spec.lua @ 83 # Failure message: test/nvimpager_spec.lua:88: Expected objects to be equal. # Passed in: # (string) '# a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # *conceal-test* normal # conceal-test # vim: filetype=help # ' # Expected: # (string) '# a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # conceal-test normal # conceal-test # vim: filetype=help # ' not ok 8 - cat mode concatenates the same file twice # test/nvimpager_spec.lua @ 91 # Failure message: test/nvimpager_spec.lua:96: Expected objects to be equal. # Passed in: # (string) '# a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # # a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # ' # Expected: # (string) '# a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # # a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # ' not ok 9 - cat mode produces no output for empty files # test/nvimpager_spec.lua @ 99 # Failure message: test/nvimpager_spec.lua:104: Expected objects to be equal. # Passed in: # (string) ' # ' # Expected: # (string) '' not ok 10 - cat mode produces no output for empty stdin # test/nvimpager_spec.lua @ 107 # Failure message: test/nvimpager_spec.lua:109: Expected objects to be equal. # Passed in: # (string) ' # ' # Expected: # (string) '' not ok 11 - cat mode explicit - as file argument means stdin # test/nvimpager_spec.lua @ 112 # Failure message: test/nvimpager_spec.lua:117: Expected objects to be equal. # Passed in: # (string) 'foo # # a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # ' # Expected: # (string) 'foo # # a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # ' not ok 12 - cat mode prefers file arguments over stdin # test/nvimpager_spec.lua @ 120 # Failure message: test/nvimpager_spec.lua:123: Expected objects to be equal. # Passed in: # (string) '# a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # ' # Expected: # (string) '# a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # ' not ok 13 - cat mode can change the default foreground color with --cmd, setting termguicolors # test/nvimpager_spec.lua @ 130 # Failure message: test/nvimpager_spec.lua:136: Expected objects to be equal. # Passed in: # (string) ' # some text # ' # Expected: # (string) 'some text # ' not ok 14 - cat mode can change the default foreground color with --cmd, setting termguicolors input via stdin # test/nvimpager_spec.lua @ 130 # Failure message: test/nvimpager_spec.lua:136: Expected objects to be equal. # Passed in: # (string) 'some text # ' # Expected: # (string) 'some text # ' not ok 15 - cat mode can change the default foreground color with -c, setting termguicolors # test/nvimpager_spec.lua @ 130 # Failure message: test/nvimpager_spec.lua:136: Expected objects to be equal. # Passed in: # (string) ' # some text # ' # Expected: # (string) 'some text # ' not ok 16 - cat mode can change the default foreground color with -c, setting termguicolors input via stdin # test/nvimpager_spec.lua @ 130 # Failure message: test/nvimpager_spec.lua:136: Expected objects to be equal. # Passed in: # (string) 'some text # ' # Expected: # (string) 'some text # ' not ok 17 - cat mode can change the default foreground color with --cmd, setting notermguicolors # test/nvimpager_spec.lua @ 130 # Failure message: test/nvimpager_spec.lua:136: Expected objects to be equal. # Passed in: # (string) ' # some text # ' # Expected: # (string) 'some text # ' ok 18 - cat mode can change the default foreground color with --cmd, setting notermguicolors input via stdin not ok 19 - cat mode can change the default foreground color with -c, setting notermguicolors # test/nvimpager_spec.lua @ 130 # Failure message: test/nvimpager_spec.lua:136: Expected objects to be equal. # Passed in: # (string) ' # some text # ' # Expected: # (string) 'some text # ' ok 20 - cat mode can change the default foreground color with -c, setting notermguicolors input via stdin not ok 21 - cat mode with modeline highlights files even after mode line files # test/nvimpager_spec.lua @ 144 # Failure message: test/nvimpager_spec.lua:150: Expected objects to be equal. # Passed in: # (string) '\ss should be ß # # a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # ' # Expected: # (string) '\ss should be ß # # a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # ' not ok 22 - cat mode with modeline honors mode lines in later files # test/nvimpager_spec.lua @ 153 # Failure message: test/nvimpager_spec.lua:159: Expected objects to be equal. # Passed in: # (string) '# a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # \ss should be ß # ' # Expected: # (string) '# a test makefile # PREFIX = nothing # all: nothing # run command --option=$(PREFIX) # \ss should be ß # ' not ok 23 - cat mode with modeline ignores mode lines in diffs # test/nvimpager_spec.lua @ 162 # Failure message: test/nvimpager_spec.lua:165: Expected objects to be equal. # Passed in: # (string) 'diff --git a/nvimpager b/nvimpager # index d7d4e2f..99fb715 100755 # --- a/nvimpager # +++ b/nvimpager # @@ -104,4 +104,4 @@ then # default_args+=(--headless) # fi # nvim "${default_args[@]}" "${files[@]}" "$@" # Date: Mon Aug 20 23:37:04 2018 +0200 # # This is based on the log entry of 3d032f9e546fc8a1e987bbbef54e8dab1ceaf4bd # but was modiefied for the tests. # # The last line is turned into a valid modeline even with the diff prefix. # If it is interpreted it should result in an error message. # # diff --git a/test/fixtures/help.txt b/test/fixtures/help.txt # index ad4baf6..ab64439 100644 # --- a/test/fixtures/help.txt # +++ b/test/fixtures/help.txt # @@ -1,3 +1,3 @@ # -vim: filetype=help # *conceal-test* normal # conceal-test # + vim: foobar=error # ' # Expected: # (string) 'commit 3d032f9e546fc8a1e987bbbef54e8dab1ceaf4bd # Author: Lucas Hoffmann