dox Executable Documentation

Show schedule

Requires log in

Given I am not logged in
When I try to access the schedule
Then AuthenticationException::$CLASS should be thrown

Show schedule wth bunch of tasks

Given the folder 'root/a/__aa'
Given the file 'root/a/__aa/__.txt' with content 'duration: PT3M'
Given the file 'root/a/__aa/logs.txt' with content '2001-01-01 9:00 >> 2001-01-01 9:01'
Given the folder 'root/a/__ab'
Given the file 'root/a/__ab/__.txt' with content 'deadline: 2001-01-10 10:00'
Given the file 'root/a/__ab/logs.txt' with content '2001-01-01 9:00 >> 2001-01-01 9:03'
Given the folder 'root/b/ab/__abc'
Given the file 'root/b/ab/__abc/description.txt' with content 'This is a *description*'
Given the file 'schedule.txt' with content '2001-01-01T12:00:00+00:00 >> 2001-01-01T12:10:00+00:00 ' . '2001-01-01T12:00:00+00:00 >> 2001-01-01T12:01:00+00:00 >> /a/ab ' . '2001-01-01T12:01:00+00:00 >> 2001-01-01T12:03:00+00:00 >> /a/aa ' . '2001-01-01T12:03:00+00:00 >> 2001-01-01T12:04:00+00:00 >> /b/ab/abc ' . ''
When I get the schedule
Then there should be 3 slots
Then the name of slot 1 should be 'ab'
Then the start of slot 1 should be '12:00'
Then the end of slot 1 should be '12:01'
Then the deadline of slot 1 should be '2001-01-10 10:00'
Then the buffer of slot 1 should be '8d 21h 59m'
Then the duration of slot 1 should be '0.05 / 0.02' with '100%' completed
Then the action target of slot 1 should be '/a/ab'
Then the name of slot 2 should be 'aa'
Then the start of slot 2 should be '12:01'
Then the end of slot 2 should be '12:03'
Then slot 2 should have no deadline
Then the duration of slot 2 should be '0.02 / 0.05' with '33.33%' completed
Then slot 2 should have no description
Then parent of slot 3 should be '/b/ab'
Then the description of slot 3 should be '<p>This is a <em>description</em></p>'

Late task

Given the folder 'root/a'
Given the file 'root/a/__.txt' with content 'deadline: 2001-01-01 12:01'
Given the folder 'root/b'
Given the file 'root/b/__.txt' with content 'deadline: 2001-01-01 12:01'
Given the folder 'root/x_done'
Given the file 'root/x_done/__.txt' with content 'deadline: 2001-01-01 12:01'
Given the folder 'root/anytime'
Given the file 'schedule.txt' with content '2001-01-01T12:00:00+00:00 >> 2001-01-01T12:10:00+00:00 ' . '2001-01-01T12:00:00+00:00 >> 2001-01-01T12:01:00+00:00 >> /a ' . '2001-01-01T12:01:00+00:00 >> 2001-01-01T12:02:00+00:00 >> /b ' . '2001-01-01T12:02:00+00:00 >> 2001-01-01T12:03:00+00:00 >> /done ' . '2001-01-01T12:03:00+00:00 >> 2001-01-01T12:04:00+00:00 >> /anytime ' . ''
When I get the schedule
Then the buffer of slot 1 should be '0d 0h 0m'
Then slot 1 should not be late
Then the buffer of slot 2 should be '0d 0h 1m'
Then slot 2 should be late
Then slot 3 should have no deadline
Then slot 3 should not be late
Then slot 4 should have no deadline
Then slot 4 should not be late

Create new schedule

Given the folder 'root/a/__aa'
Given the file 'root/a/__aa/__.txt' with content 'duration: PT3M'
Given the file 'root/a/__aa/logs.txt' with content '2001-01-01 9:00 >> 2001-01-01 9:01'
Given the folder 'root/a/__ab'
Given the file 'root/a/__ab/__.txt' with content 'deadline: 1 day 2 hours 5 minutes'
Given the file 'root/a/__ab/logs.txt' with content '2001-01-01 9:00 >> 2001-01-01 9:03'
Given the folder 'root/b/ab/__abc'
Given now is '2001-01-01 10:10:10'
When I create a new schedule from '2001-01-01 12:00' until '2001-01-01 12:10'
Then there should be a file 'schedule.txt' with the content '2001-01-01T12:00:00+00:00 >> 2001-01-01T12:10:00+00:00 ' . '2001-01-01T12:00:00+00:00 >> 2001-01-01T12:01:00+00:00 >> /a/ab ' . '2001-01-01T12:01:00+00:00 >> 2001-01-01T12:03:00+00:00 >> /a/aa ' . '2001-01-01T12:03:00+00:00 >> 2001-01-01T12:04:00+00:00 >> /b/ab/abc ' . ''
Then there should be a file 'schedules/20010101T101010.txt' with the content '2001-01-01T12:00:00+00:00 >> 2001-01-01T12:10:00+00:00 ' . '2001-01-01T12:00:00+00:00 >> 2001-01-01T12:01:00+00:00 >> /a/ab ' . '2001-01-01T12:01:00+00:00 >> 2001-01-01T12:03:00+00:00 >> /a/aa ' . '2001-01-01T12:03:00+00:00 >> 2001-01-01T12:04:00+00:00 >> /b/ab/abc ' . ''

Empty schedule

Given the folder 'root/__a'
When I get the schedule
Then there should be 0 slots

Invalid schedule file

Given the folder 'root/not'
Given the file 'schedule.txt' with content '2001-01-01T12:00:00+00:00 >> 2001-01-01T12:10:00+00:00 ' . 'now >> tomorrow >> /not/existing/task'
When I get the schedule
Then there should be 0 slots

Mark task done

Given the folder 'root/__a'
Given the folder 'root/__a/b'
When I mark '/a' as done
When I mark '/a/b' as done
When I mark '/c' as done
Then there should be a folder 'root/x_a'
Then there should be a folder 'root/x_a/x_b'
Then there should be a folder 'root/x_c'

Mark done task as done

Given the folder 'root/x_a'
When I mark '/a' as done
Then there should be a folder 'root/x_a'

Mark done task as open

Given the folder 'root/x_a'
When I mark '/a' as open
Then there should be a folder 'root/__a'