dagfinn | 14 July, 2007 14:15
I created my own test runner to run tests inside Vim, I can't remember how long ago. Must be a year or two. I never shared it with the world. It was too primitive for anyone else to use. Then, recently, I decided to try re-implementing it in a more serious way. That meant using a more sophisticated programming language. Vim script has seen some improvements and is pretty useful for simple tasks, but I want something that's object-oriented and has a test framework. That means Perl, Python or Ruby, all of which are available from inside Vim. So I've started doing it in Ruby.
It's not ready for public consumption yet, but I think it will be eventually. Here's what it looks like at the moment:
This is how I program about 90 per cent of the time: the test case and the class I'm testing side by side and a small extra window to show the test results. I can run the test by pressing F11 (which just happened to be the key that was available at the time). I work test-first, so before implementing something on the left, I have to write another test on the right. It's less tempting to start implementing without tests when there's an easy way to run the tests.
dagfinn | 15/07/2007, 11:53
Thanks, I'll try even harder to find the time to get it ready for prime time.
mod rewrite | 19/07/2007, 01:40
I use only Eclipse.. vim is to complicated.
GameOn | 19/07/2007, 01:49
This looks awesome, just don't rush it, make it how you want it!
dagfinn | 19/07/2007, 07:59
If Vim is too complicated, there is an "easy mode" that makes for more "normal" editing.
For example:
http://www.linux.com/articles/60991
mod rewrite | 01/08/2007, 05:44
Eclipse is better.. I use linux but vim for projects? Never.
Sebastian Bergmann | 25/10/2007, 22:25
dagfinn | 29/10/2007, 06:19
Bjarte S. Karlsen | 01/11/2007, 16:14
Kris Day | 16/11/2007, 22:44
| « | September 2008 | » | ||||
|---|---|---|---|---|---|---|
| Su | Mo | Tu | We | Th | Fr | Sa |
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | ||||
Great
Carl | 14/07/2007, 15:16