[TIP] Testing specific code
exarkun at twistedmatrix.com
exarkun at twistedmatrix.com
Thu Sep 3 13:36:25 PDT 2009
On 08:20 pm, matthewharrison at gmail.com wrote:
>On Thu, Sep 3, 2009 at 1:20 PM, <exarkun at twistedmatrix.com> wrote:
>>
>>Twisted has some emacs integration code that binds F8 to run the tests
>>for
>>the active buffer. If it's a test module, then it just runs that
>>module.
>> If it's not, then it uses the buffer local 'test-case-name' to decide
>>what
>>tests to run. Such variables are defined by a line like:
>>
>># -*- test-case-name: foo.bar,baz.quux -*-
>>
>>Trial adopts this convention as well and can be asked to run the tests
>>which
>>apply to a particular module.
>
>This sounds interesting. A quick search for twisted emacs doesn't
>reveal much. Do you happen to know where this code lives? I'd like
>to be inspired by any good chunks in it :)
I won't promise any of it is good. ;) But here it is:
http://twistedmatrix.com/trac/browser/trunk/emacs/twisted-dev.el
Jean-Pail
More information about the testing-in-python
mailing list