I am going to make this a new thread to emphasize its importance. Not reading settings when Leo runs external unit tests was a disastrous mistake. The "savings" of 0.3 seconds ruined many unit tests. Changing one argument in leoDynamicTest.py.main() corrects that mistake.
This fix, combined with some other recent bug fixes involving the nullGui, means that almost all the tests in unitTest.leo for g.app.isExternalUnitTest can be removed. All the weird hacks and bogus workarounds are gone. This is a *huge* step forward for Leo: it means that I can *reliably* use external unit tests in almost all situations. This saves a *lot* of time. I can rerun *external* unit tests (and *only* external unit tests) from unitTest.leo whenever I change Leo's code, *without* having to reload unitTest.leo. The same remark applies to any other .leo file from which I am running external unit tests. Edward P.S. I plan no further improvements to Leo's unit test infrastructure at this time. All the tiny grains have grit have been removed from the gears. EKR -- 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.
