Closed bstinsonmhk closed 10 years ago
woah, this looks very interesting, will take me a bit to read it through before I merge. Thank you for taking the time to put this together!
Awesome! I'll definitely check that out and perhaps send another patch. I picked up the expand(...) idiom writing some things for vim 6 so it definitely looks like time for me to revisit this for some of my other plugins too :)
This implementation with finddir() works for my purposes. I can see extending this in the future to allow for user-defined testdirs and testfiles to search for.
This looks almost good to go, a couple of final (I think) observations:
project
to the Completion
function so that a user can also autocomplete that? Under test_objects
sounds reasonable.Python objects
section of the docs so that it describes better what is it that is needed for this call to work. I find your explanation of this PR very good in that sense, but right now there is no reference other than an extra object available.
This runs tests for the entire project. It does this by starting in the current directory and walking up to '/' looking for a directory called 'tests' or a file called 'tests.py'. If it finds either of these, run py.test otherwise error out letting the user know that there are no tests defined for the project tree. There is a helper argument
'showprojecttests''projecttestwd' which shows where in the directory tree we will run py.test