You signed in with another tab or window. Reload t
8000
o refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 15, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 15, 2026. It is now read-only.
See discussion in #62. Some of our Python code has doctests (which I suspect don't get run), but most of it is untested except at the integration level (by running vroom itself). We should have more Python-level unittests, and a simple way to run all the tests.
TBD whether these tests should depend on having vim installed or mock it out (or both). Vim has enough quirks to it that I'd rather include real vim in the tests instead of emulating all its quirks.
I'd certainly mock out vim in the unit tests (though actually, most of the code we have doesn't actually have dependencies): the vroom tests effectively feature as integration tests.
For doctests, I'd actually be happier migrating them to unittest-style tests anyway: I don't find the tests in e.g. actions.py that easy to read.
Activity
dbarnett commentedon Oct 23, 2014
TBD whether these tests should depend on having vim installed or mock it out (or both). Vim has enough quirks to it that I'd rather include real vim in the tests instead of emulating all its quirks.
For doctests, we'll have to deal with http://bugs.python.org/issue22710. doctest for python3 is kind of dumb and pedantic.
malcolmr commentedon Oct 24, 2014
I'd certainly mock out vim in the unit tests (though actually, most of the code we have doesn't actually have dependencies): the vroom tests effectively feature as integration tests.
For doctests, I'd actually be happier migrating them to unittest-style tests anyway: I don't find the tests in e.g.
actions.pythat easy to read.dbarnett commentedon Oct 24, 2014
Yeah, doctests should be primarily documentation. I agree our doctests are being abused as tests and way too exhaustive.