On Mon, Dec 6, 2021 at 2:31 AM vitalije <[email protected]> wrote:
> I am trying to catch up with new testing and your work on importers so
> far. What is the proper way to run tests in Leo, now?
>
Use the test-all or test-import commands.
I have also defined (in my local leoPy.leo file) the following @command
nodes:
@command test-python
g.cls()
g.run_unit_tests('leo.unittests.core.test_leoImport.TestPython')
and
@command test-one
# test = "" tests all python test cases.
test = 'test_nested_classes' # or any other single python test case.
if test and not test.startswith('.'):
test = f".{test}"
g.run_unit_tests(f"leo.unittests.core.test_leoImport.TestPython{test}")
The tests themselves reside in the leo/unittests folder. leoPy(Ref).leo
contains @file nodes for all tests.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0MDF%2B44L1UJqduyBVvLvqOzWc3eTCPQTGsPso7wP9omQ%40mail.gmail.com.