On Mar 20, 5:01 pm, "Edward K. Ream" <[email protected]> wrote:
> Conceivably, Leo's unit testing framework could support something like
>
> - @tests a-prefix
>   + class MyClass
>     + @test get
>
> This would cause a-prefix to be appended to error messages.
>
> But this is a bit silly.

I wouldn't call this silly, but let me explain how I see it. Such a
feature would only increase the verbosity of the log messages. This
would add more complexity to leo's testing framework and I'm not sure
it is worth it, because I can increase the verbosity of the log
messages manually, by having additional info in the headline of @test
nodes. For example naming them '@test ClassName.method_name()' instead
of '@test method_name()' as discussed above.

As I understand, when 'run-unit-tests' is executed, leo dumps the
@test nodes into another outline and processes it by running another
leo instance in batch mode (I didn't investigate the internal testing
machinery, so I might be wrong here). The question is if leo can keep
track of the tests it is running (in terms of positions in the
original outline that contains those @test nodes), so if a test fails,
he could set focus to that node. This is the feature I would like. If
there would be more test failures, I would be happy if leo would just
set focus to the node that contains the first failure (and even skip
running the remaining tests if possible, to save some time if there
are really many tests), so I could deal with the issues one by one.
After all, the motto of unit testing is "All tests must pass", so
fixing the failures one by one shall be OK.

I believe that such a feature would make leo more IDE-like and will
increase the speed of development.
--~--~---------~--~----~------------~-------~--~----~
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