View on GitHub

RED - Robot Editor

Eclipse based editor for RobotFramework testcases

RED - Robot Editor User Guide > User guide > Validation >

Detecting tasks/TODO defined in comments

It is a common practice to put notes in comments describing some kind of tasks which needs to be done in future. RED offers possibility to detect such tasks and overview them in single place.

Tasks detection is done during validation phase, so the validation itself has to be enabled too. Once everything is enabled RED will start reporting special kinds of markers similarly as Problems, but of different type (Task). For example in following code there are two tasks defined in comments:

# TODO implement more test scenarios
*** Test Cases ***
case
    Should Be Equal    1    2    # FIXME this assertion does not pass
    ...

The detection is based on tags. When defined tag is found by RED inside the comment it will be reported as a__task__. By default there are two tags which RED recognizes: TODO and FIXME: the firstone has normal priority while the latter is reported with high priority. The tags and their priorities can be specified in preferences.

Detected tasks are visible in RED in couple of places:

Preferences

Following preferences can be changed regarding tasks detection: