Rev 4748 significantly improves Leo's unit-testing framework:

1. When running unit tests externally, g.app.isExternalUnitTest is
True.

2. Running unit tests externally now inits settings from
leoSettings.leo.

On my machine, this adds about 0.35 sec to the startup time, which is
about 50% of the total.  Experience shows that this extra time is well
worthwhile: the extra time is not enough to be annoying (yet) and it
adds an important capability to external unit tests.

3. The bridgeController code now monkey-patches g.doHook to be a do-
nothing when the bridge is not loading plugins, for example, when
running external unit tests. This change ensures a clean run without
plugins.

More improvements and unit tests are coming.  For instance, it will be
good to have unit tests that check Leo's unit testing machinery.

It is now easier to make unit tests than to forgo them, a huge change
in my workflow.

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