On Thu, Dec 20, 2012 at 10:27 AM, Edward K. Ream <[email protected]>wrote:

> I'll be adding this script to scripts.leo today.

Done at rev 5540.  You will find it at the top level of scripts.leo. Here
is the script's docstring:

QQQQQ
    This script transliterates @test nodes into .py file. The two main ways
of
    using this script are as follows::

        TestWriter(c,path='test').run(fn='unit_tests.py') # writes one file
        TestWriter(c,path='test').run(fn=None)            # writes separate
files.

    The first writes all tests to test/unit_tests.py; the second writes each
    unit test to a separate .py file in the test directory.

    The script imports each written file and reports any syntax errors.

    This is a straightforward script; it should be easy to modify it to suit
    individual needs.
QQQQQ

One last word.  This could be an essential script for some people.  It
allows people to use Leo's @test nodes for their own use, while at the same
time creating traditional unit tests for those who do not use Leo.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to