Hi PyDev devs,
I'm a user of nose-of-yeti (noy) [0] which is a tool that can be used
together with tools like nose, lettuce, freshen, should_dsl, etc. to
create a bdd environment similar to cucumber/rspec in ruby.
PyDev mostly supports this already. There's only one catch: nose-of-yeti
requires a custom codec for spec files which is not supported by PyDev.
This means that valid noy .spec files are not recognized which leads to
incompatibilities in the PyDev debugger [1] and editor [2].
I'm currently working around the debugger problem with the patch
described in [1]. But I couldn't solve the editor problem which is more
complex.
To fully support noy, PyDev would have to:
1) Apply the patch in [1]
2) Either support non-default codecs in general - which is probably a
good thing in it's own right - or support the 'spec' codec specifically.
1) will probably be unnecessary if the 'spec' encoding is generally
supported.
2) I've written a small script that can be included in sitecustomize.py
to register the spec if you want to try it out with PyDev, see attachment.
I hope someone on your side is interested to support me in this.
Thanks,
Florian
[0] https://bitbucket.org/delfick/nose-of-yeti/overview
[1] see
https://bitbucket.org/delfick/nose-of-yeti/src/2866fc497e5b/README.rst
[2] throwing java.io.UnsupportedEncodingException: The encoding found:
>>spec<< on python/hrs/specs/test_messaging.py is not a valid encoding.
at org.python.pydev.core.REF.getValidEncoding(REF.java:920)
and therefore not decoding the file correctly even when the codec is
correctly registered via sitecustomize.py or usercustomize.py.
"""
Register the nose-of-yeti spec codec on python startup.
"""
from noseOfYeti.tokeniser import Tokeniser
def site():
"""Register the nose of yeti tokeniser."""
tok = Tokeniser()
tok.register()
site()
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
pydev-code mailing list
pydev-code@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-code