Skip to content
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

[WIP] Integration tests: Docker, tmux, Neovim #124

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Commits on Apr 21, 2017

  1. Display source with exceptions / assertion errors

    This wraps the temporary script into a function to get the line number
    of `vader#assert` calls.
    blueyed committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    7f0b53e View commit details
    Browse the repository at this point in the history
  2. Store fpos with cases and use it in tracebacks

    E.g.
    
        ( 1/13) [EXECUTE] (X) Vim(finish):E168: :finish used outside of a sourced file
          > /home/user/src/neomake/tests/utils.vader:11: finish  " foo
    
    Also passes it through to `s:execute`.
    blueyed committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    079f584 View commit details
    Browse the repository at this point in the history
  3. s:read_vader: Include: call s:read_vader recursively

    This will use the actual file name for included lines.
    
    Fixes junegunn#88.
    blueyed committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    7c59cfc View commit details
    Browse the repository at this point in the history
  4. Define real functions for SyntaxAt/SyntaxOf

    Wrapping the code in a function will cause them to not be available otherwise,
    or g:SyntaxAt() would have to be used.
    blueyed committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    42a3383 View commit details
    Browse the repository at this point in the history
  5. Fix existing tests

    blueyed committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    ffcc32b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    762b2ca View commit details
    Browse the repository at this point in the history
  7. FEAT: move s:prepare into vader#window#execute

    While this means more overhead in general, it allows to access
    script-local variables in the tests.
    
    squash! FEAT: move s:prepare into vader#window#execute
    
    Use `vader#log` directly instead of `:Log`, since the latter might not
    be defined (yet).
    blueyed committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    39b7f9b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c4371f1 View commit details
    Browse the repository at this point in the history
  9. Add integration tests

    blueyed committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    96398de View commit details
    Browse the repository at this point in the history
  10. Tests: use Docker

    This uses a Docker image (currently blueyed/vader.vim, based on
    vim-testbed), and runs the test in there.
    
    This improves the overall build time, since Vim does not have to be
    compiled, and tests against different Vim version.
    
    I have also added neovim to the build matrix.
    
    Vim 7.3 currently fails since Ruby is not installed therein.
    blueyed committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    e1753dc View commit details
    Browse the repository at this point in the history
  11. fixup! Add integration tests

    blueyed committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    f6ac4bd View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    cdc0cc4 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9cce864 View commit details
    Browse the repository at this point in the history
  14. TEST: only run testnvim

    blueyed committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    c6fabb4 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    5b01fbf View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    7d1a519 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    23ec664 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a50949b View commit details
    Browse the repository at this point in the history
  19. Revert "TEST: only run testnvim"

    This reverts commit 5b70f64.
    blueyed committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    0925424 View commit details
    Browse the repository at this point in the history