Comment #1 on issue 1014 by [email protected]: add suite type to listener interface
http://code.google.com/p/robotframework/issues/detail?id=1014

This can already be figured out using 'suites' and 'tests' attributes of the passed in suite, for example:

def start_suite(self, name, attrs):
    type_ = 'file' if attrs['tests'] else 'directory'

The semantics are that only test case files can have tests and a test case file is guaranteed to contain at least one test, so the above never fails to distinguish files and directories.

Adding explicit attribute to `attrs` may be considered nevertheless.


Reply via email to