Speak and Shout

Monday, June 11, 2007

kNose extension under development

For about a month, I've been quietly developing another Komodo Edit/IDE extension called kNose. It's a GUI front-end for the nose unit testing framework for Python written by Jason Pellerin. I wanted something that would make it easy for me to jump into testing as part of my normal development. Despite the cool nature of auto-discovery and execution of unit tests with nose, I'm still too lazy to use it if it's not integrated with my IDE.

Here's a screenshot of how things look so far for the curious:


Yes, that's a red bar to indicate that some of the tests didn't pass. The auto-test feature, when checked, will run the tests each time a file is saved in the editor. When auto-test is unchecked, then the Run Tests button will kick off the unit tests manually.

Basically, my remaining to-do list is as follows:
  1. make the tree nodes expandable and collapsible,
  2. handle error reporting properly (whatever that means I haven't decided ... hover over a node to see a tooltip? ... double-click to get a dialog with the error message? I'll probably try both and see which style I like.)
  3. run nose in a background thread so that it doesn't freeze up Komodo while the tests are running.
  4. test on both Linux and Windows to see that things check out. (I'll be looking for a volunteer with a Mac as I get closer to release.)
The last, detail stages of the project always seem to be the hardest, so I'm posting to encourage myself to "press on toward the goal". Also, I was curious if other Pythonistas in the testing community would be interested in my extension.

It will probably be another two to three weeks before I finish since this is definitely a part-time project. I'll keep everyone posted.

Labels: , ,

3 Comments:

  • That is pretty super cool...

    By Anonymous Anonymous, At 10:45 PM  

  • I think Brandon might be a contender for our most awesome user.

    -shane

    By Blogger mixedpuppy, At 12:41 PM  

  • How is your kNose project coming along? It sounds very helpful. Currently I have nosetests mapped to ctrl-alt-N -- you kNose extension would be a cool tool.

    By Anonymous Jeff H, At 9:55 AM  

Post a Comment



<< Home