On Dec 4, 10:43 am, Javier Rojas <[email protected]> wrote: > Hi all, > > Do you vim script authors write tests for your code? how do you do unit > testing for your VimL code? > > I ask because I'd like to do it for some of my scripts, but I don't > usually see anything similar being done in other people's scripts. >
I wrote a fairly comprehensive test script for the 2html plugin, but it's not very fancy. Basically I generate script output for almost all the script option combinations. I have the output files in version control with Mercurial, so I just look through the changes for each file to ensure all changes were expected after making script updates. It's brute-force, but it helps prevent regression, especially due to weird option combinations. I had envisioned something better, but it's good enough for the time being and was quick to implement. http://code.google.com/p/vim-2html-test/ -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
