Skip to content

Instantly share code, notes, and snippets.

@nelstrom
Created February 26, 2014 10:26
Show Gist options
  • Save nelstrom/9227224 to your computer and use it in GitHub Desktop.
Save nelstrom/9227224 to your computer and use it in GitHub Desktop.
An attempt at writing an errorformat for output from the nose test runner.
let &makeprg="cat nose.txt"
let &errorformat="%E%f line %l in test_foo,"
let &errorformat.="%C%m,"
let &errorformat.="%Z"
make!
copen
..F.
-----------------------------------------------------------------------------
1) FAIL: test_foo (links.tests.SteelTest)
Traceback (most recent call last):
links/tests.py line 8 in test_foo
self.assertEqual(2, 3)
AssertionError: 2 != 3
-----------------------------------------------------------------------------
4 tests run in 0.2 seconds.
1 FAILED (3 tests passed)
nosetests --verbosity=1
Creating test database for alias 'default'...
Destroying test database for alias 'default'...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment