On Sunday, October 14, 2018 at 9:56:52 AM UTC-5, Edward K. Ream wrote:

We should decide where tests belong.
>

For testing, I have added two top-level test functions to leoApp.py:

def test1():
    assert True
    
def test2():
    assert False

Running tests on explicit files does work as expected

c:\leo.repo\leo-editor\leo\core>pytest leoApp.py

or

c:\leo.repo\leo-editor\leo>pytest core\leoApp.py

or

c:\leo.repo\leo-editor\leo>pytest core\leoApp.py::test1

However, I have not figured out how to run tests on all leo*.py files in 
the leo folder.  There are .ini settings and/or command-line options that 
supposedly do this, but I have not been able to get them to work on 
Windows.  I'll investigate on Linux.

Anybody have any suggestions?

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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to