Skip to Content
Modern Vim
book

Modern Vim

by Drew Neil
May 2018
Intermediate to advanced
168 pages
4h 2m
English
Pragmatic Bookshelf
Content preview from Modern Vim
Tip 14Running Tests and Browsing Failures

When doing test-driven development, you may need to run your whole test suite, the tests defined in one particular file, or even just a single isolated test. It would be handy if your text editor provided commands for executing tests at each of these levels of granularity. Also, wouldn’t it be cool if you could leverage Vim’s quickfix list so that when a test fails you could jump directly to the line of code where the error originated? In this tip, you’ll learn about a plugin that handles all of this and is compatible with many different programming languages and testing frameworks.

Preparation

In this tip, you’ll be using the vim-test plugin[44] by Janko Marohnic´ . (The plugin with the awesome strapline: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Vim Masterclass

Vim Masterclass

Jason Cannon
Mastering Vim

Mastering Vim

Ruslan Osipov

Publisher Resources

ISBN: 9781680506006Errata Page