dox Executable Documentation

Log tasks

Start logging

Given I have entered the task '/some/task'
Given I have entered the start time '2001-01-01 12:00'
When I start logging
Then logging should be started '/some/task' at '2001-01-01 12:00'

Start log while logging ongoing

Given the folder 'root'
Given a log has been started for '/some/task' at '2011-11-11 11:11'
Given I have entered the task '/my/task'
Given I have entered the start time '2011-11-11 12:12'
When I start logging
Then logging should be started '/my/task' at '2011-11-11 12:12'
Then there should be a file 'root/some/task/logs.txt' with the content '2011-11-11T11:11:00+00:00 >> 2011-11-11T12:12:00+00:00 '

Finish logging for new task

Given the folder 'root'
Given a log has been started for '/this/new/task' at '2011-11-11 11:11'
Given I have entered the end time '2011-11-11 11:12'
When I finish logging
Then no logging should be going on
Then there should be a file 'root/this/new/task/logs.txt' with the content '2011-11-11T11:11:00+00:00 >> 2011-11-11T11:12:00+00:00 '

Show task when finish ongoing logging

Given the folder 'root'
Given a log has been started for '/some/task' at '2011-11-11 11:11'
Given I have entered the end time '2011-11-11 11:12'
When I finish logging
Then the task '/some/task' should be preset for logging

Cancel logging

Given the folder 'root'
Given a log has been started for '/this/new/task' at '2011-11-11 11:11'
Given I have entered the end time '2011-11-11 11:12'
When I cancel logging
Then no logging should be going on
Then there should be no file 'root/this/new/task/logs.txt'

Add log

Given the folder 'root/some/task'
Given the file 'root/some/task/logs.txt' with content 'now >> then '
Given I have entered the task '/some/task'
Given I have entered the start time '2011-11-11 11:11'
Given I have entered the end time '2011-11-11 11:12'
When I start logging
Then no logging should be going on
Then there should be a file 'root/some/task/logs.txt' with the content 'now >> then -11-11T11:11:00+00:00 >> 2011-11-11T11:12:00+00:00 '

Add log while ongoing logging

Given a log has been started for '/some/other/task' at 'yesterday'
Given the folder 'root/some/task'
Given the file 'root/some/task/logs.txt' with content 'now >> then '
Given I have entered the task '/some/task'
Given I have entered the start time '2011-11-11 11:11'
Given I have entered the end time '2011-11-11 11:12'
When I start logging
Then logging should be started '/some/other/task' at 'yesterday'
Then there should be a file 'root/some/task/logs.txt' with the content 'now >> then -11-11T11:11:00+00:00 >> 2011-11-11T11:12:00+00:00 '

Add log to tasks with meta information

Given the folder 'root/__meta/x_info/__1_task'
Given I have entered the task '/meta/info/task'
Given I have entered the start time '2011-11-11 11:11'
Given I have entered the end time '2011-11-11 11:12'
When I start logging
Then there should be a file 'root/__meta/x_info/__1_task/logs.txt' with the content '2011-11-11T11:11:00+00:00 >> 2011-11-11T11:12:00+00:00 '

Show idle logger

Given the folder 'root/first/task'
Given the folder 'root/second/task'
Given the folder 'root/done/x_task'
Given the folder 'root/x_parent/done'
When I get the schedule
Then the active logger should 'not' be shown
Then the idle logger should '' be shown
Then the auto complete list of tasks should be array('/done', '/first', '/second', '/first/task', '/second/task')

Show active logger

Given a log has been started for '/some/task' at '2001-01-01 11:01:00'
When I get the schedule
Then the idle logger should 'not' be shown
Then the active logger should '' be shown
Then the active task should be '/some/task'
Then the start time should be '2001-01-01 11:01'