alfredodeza / pytest.vim

Runs your UnitTests with py.test displaying red/green bars and errors
275 stars 40 forks source link

Adds global variables for command and path delimiters #5

Closed ameade closed 12 years ago

ameade commented 12 years ago

This update makes it possible to use Pytest with nose style tests in addition to py.test style tests, by simply changing the value of the global variables

alfredodeza commented 12 years ago

Have you actually tried to run this? pytest.vim does a lot of regex parsing of the returned output from the test runner (py.test in this case) and output from Nose is different.

That is my main point of grief in making it specifically for pytest.vim and not add other test runner support.

Although you have taken care to note that path usage is different, the regex parsing is where the meat of the plugin is:

ameade commented 12 years ago

It works just fine but isn't as robust. For example, running the tests shows the output from nose (or whatever test runner) as opposed to a parsed output. I didn't even know it did all that! I can understand not wanting a half-ass working implementation for nosetests inside of master. It's a great tool, my branch will work just fine for what I need it for. Thanks for the feedback.

alfredodeza commented 12 years ago

Well, the engine that parses the output does so to come to the conclusion that a test passed or not, and if so, what exceptions are dealing with what tests, you can also use the plugin to jump to the first, last, next or previous failure and it even knows if the failure is in a different file.

This is all possible with the parsing of the output. Could it work with Nose? Maybe...

If you are looking for something to be able to run some tests with any other application I would look into MakeGreen:

https://github.com/reinh/vim-makegreen