Commit graph

2598 commits

Author SHA1 Message Date
Federico Hernandez
b3d991449f Unit tests
- analysis of bug.480.t
2011-09-05 23:15:05 +02:00
Paul Beckingham
4346001c94 ANALYSIS
- Filled in a few blanks.
2011-09-05 15:10:25 -04:00
Paul Beckingham
297ec6dd1f Bug - timesheet
- Converted the timesheet report to use raw word arguments instead of
  filters.
- Uses new TDB2:all_tasks method.
- Cleaned up unit tests.
2011-09-05 10:47:38 -04:00
Paul Beckingham
a3cb1172a1 Code Cleanup
- The .gitignore file listed old junk.
2011-09-05 09:34:01 -04:00
Paul Beckingham
402ac5b418 Code Cleanup
- Removed .gitignore entries for obsolete tests.
2011-09-05 02:10:18 -04:00
Paul Beckingham
d1bc46c355 Unit Tests
- Minor bug fixes.
2011-09-05 01:48:25 -04:00
Paul Beckingham
e2d0126415 Unit Tests
- Fixed minor unit test problems.
2011-09-05 01:27:57 -04:00
Paul Beckingham
751e8e7f90 Import YAML
- Implemented the import-yaml.pl external script.
- Added unit tests.
- Fixed problem where the pending tasks were not loaded prior to uuid
  verification.
2011-09-05 01:11:37 -04:00
Paul Beckingham
fa973f734b Safety Valve
- Added safety valve processing.  Whenever a write-command omits a
  filter, the command will affect every task.  This is dangerous.
  If rc.confirmation is disabled, the command is terminated.
2011-09-04 08:44:22 -04:00
Paul Beckingham
2b7c2f6a21 Unit Tests
- Improved the signal to noise ration for more unit tests.
2011-09-03 16:25:48 -04:00
Paul Beckingham
f245fa808c Code Cleanup
- Removed obsolete TDB, Att and Location code.
- Removed associated unit tests, unfortunately all ones that pass.
2011-09-03 13:17:03 -04:00
Paul Beckingham
6b3dfd0891 TDB2
- Eliminated TDB from the unit test builds.
2011-09-03 13:03:17 -04:00
Paul Beckingham
af404a5b5e Unit Tests
- Increased the signal to noise ratio.
2011-09-03 10:53:27 -04:00
Johannes Schlatow
45a07f4d85 Merge
added missing gc, unit tests ok (almost)
2011-09-03 12:33:48 +02:00
Federico Hernandez
92d9b980b5 Unit tests
- project.t analysis
2011-09-02 15:35:04 +02:00
Federico Hernandez
04fab0c37a Unit tests
- added file test/ANALYSIS
  containing information about the different unit tests failing
  while finalizing 2.0.0. To be removed when releasing 2.0.0.
2011-09-02 09:25:29 +02:00
Paul Beckingham
5118b61f60 Commands - shell
- Enabled the shell command.
- Cleaned up unit tests.
2011-09-02 00:28:31 -04:00
Paul Beckingham
7b0bf9f3c2 Unit Tests
- Modified the merge.t tests to accomodate the use of 'export' instead
  of the now obsolete 'export.csv' command.
2011-09-02 00:01:18 -04:00
Paul Beckingham
63eb22fc7e TDB2 Merge
- Migrated TDB::merge to TDB2::merge.
- Removed obsoleted code from TDB.
- Modified unit tests for merge to use export instead of export.csv.
2011-09-01 23:48:35 -04:00
Paul Beckingham
f19a09b390 Bug
- When handleRecurrence was cloning the parent task, it failed to set
  a new ID, so all the child tasks were given the ID of the parent.
- Cleaned up bug.annual.t.
2011-09-01 01:05:59 -04:00
Paul Beckingham
e0ee80b1a9 Import todo.sh
- Added more unit tests to todo.sh import.
2011-09-01 00:04:18 -04:00
Paul Beckingham
c1a21ce5a4 Export YAML
- Implemented export-yaml.pl as a filter.
- Reimplemented export.yaml.t to use the filter.
2011-08-31 23:52:07 -04:00
Federico Hernandez
dfe72d7de7 Unit tests
- count.t
  log now puts tasks directly into completed
2011-09-01 00:14:16 +02:00
Paul Beckingham
7789692678 Import
- Fixed priority and tag bugs in the todo.sh transform.
- Began (but have not finished) writing unit tests for this.
2011-08-31 02:29:02 -04:00
Paul Beckingham
b09351c517 Task Validation
- Fixed validation bug whereby recurring child tasks inherited the
  parent status ("recurring") instead of the expected "pending".
- Modified 'add' command to code duplicated in Task::validate.
- Cleaned up associated bug.period.t unit test.
2011-08-31 01:34:59 -04:00
Paul Beckingham
b4a583b951 Import - todo.sh
- Wrote a todo.sh parser based on Gina's specs.
- Started unit tests (not finished).
2011-08-30 18:29:57 -04:00
Paul Beckingham
c6837d927f Unit Tests
- Cleaned up 'append' unit tests.
2011-08-30 17:32:58 -04:00
Paul Beckingham
aefe4fa81c Unit Tests
- Cleaned up prepend unit tests.
2011-08-30 17:32:28 -04:00
Paul Beckingham
eeedfc48de Unit Tests
- Removed obsolete import/export unit tests.
2011-08-30 00:57:00 -04:00
Paul Beckingham
380aadd76a Unit Tests
- The export.yaml.t test now verifies env access to task.
2011-08-28 18:16:43 -04:00
Paul Beckingham
1a4916ff03 Unit Tests
- Corrected PATH in env command.
2011-08-28 17:45:28 -04:00
Paul Beckingham
de5bee4353 Bug
- Import was not properly handling tags as a JSON array.  It assumed it
  was a string.
- Modified roundtrip.t tests so they work.
2011-08-28 17:21:49 -04:00
Paul Beckingham
6ab7cec36c Unit Tests - export-yaml.pl
- Rewrote the unit tests for the old export.yaml command to use the
  new export-yaml.pl add-on.
2011-08-28 16:53:49 -04:00
Paul Beckingham
0f627bd44e TDB2
- Added TDB2::clear and TF2::clear methods.
2011-08-28 08:13:41 -04:00
Paul Beckingham
0dd4e6d360 Command: count
- Now generates recurring tasks.
- Cleaned up unit tests.
2011-08-28 00:17:51 -04:00
Paul Beckingham
1e70f00c29 TDB2
- Properly handles cases where tasks are added, then existing data files
  are loaded.  The 'add' list and the 'loaded' list needed to be merged.
2011-08-27 23:30:51 -04:00
Paul Beckingham
d22871b265 Import
- Added unit tests for the 'import' command, which uses JSON as the
  native format.  This is the new default import/export format.  All
  other import/export formats are (to be) implemented as transforms
  to JSON.
2011-08-27 18:42:08 -04:00
Paul Beckingham
0eec42ce4a TDB2
- Corrected maintenance of the _lines vector during TDB2::add_line.
- Implemented TDB2::modify_task undo maintenance.
- Added unit tests for TDB2.  Which fail.
2011-08-27 16:33:19 -04:00
Paul Beckingham
64be6e1cf4 Unit Tests
- Added unit tests for bug 819, on behalf of Matt Kraai.
- Created a new, single test for cleanup that replaces 6.  It's makes
  for shorter unit tests, and adds less test count inflation.  Over
  time, all tests should be modified in a similar way.  This will
  probably cut the total number of unit tests in half, but that's not
  the important metric.
2011-08-26 02:13:32 -04:00
Paul Beckingham
dab06f8672 Code Cleanup
- All objects now use the same convention for naming members.  The
  consistency is a good thing.
2011-08-25 21:54:28 -04:00
Paul Beckingham
02df3853f7 Unit Tests
- Fixed more unit tests that were out of synch with the latest
  functionality, text messages or rendering.
2011-08-24 00:47:44 -04:00
Paul Beckingham
257f5ab3da Bug #458
- Fixed bug #458, removing the ambiguous 'm' as a duration, leaving 'mi[nutes]'
  and 'mo[nths]' requiring at least two characters for a match.
2011-08-23 22:46:32 -04:00
Paul Beckingham
d15cccdb7d Bug #694
- Fixed bug #694, which allows attributes to be modified while annotating a
  task (thanks to Aikido Guy).
2011-08-23 22:30:01 -04:00
Paul Beckingham
2f60bdf9d0 Bug #720
- Fixed bug #720, so that when the 'info' report renders total active time,
  it uses a lossless format (thanks to Bernhard B).
2011-08-23 22:15:00 -04:00
Paul Beckingham
2e09ddd900 Unit Tests
- Fixed some tests that used old message text.
- Fixed tests that relied on 'log'ed tasks still being written into
  pending.data.
- Removed obsolete auto-info tests.
2011-08-23 20:12:19 -04:00
Paul Beckingham
6ed2bcd605 Durations
- Removed support for ' 1 wk', namely spaces before and after the ordinal.
  This removes (some) ambiguity in more complex command lines.
- Fixed unit tests accordingly.
2011-08-21 23:19:10 -04:00
Paul Beckingham
7a778ba317 E9 operator_equal
- Fixed broken logic in operator_equal.
- Fixed typos in op_and.t unit test.
- Fixed descriptions in op_or.t.
2011-08-21 18:38:04 -04:00
Paul Beckingham
f11c8ee5c6 Unit Tests
- Added unit tests for the '<=' and '>=' operators.  All tests pass,
  which makes a nice treat.
- Added more tests to '<' and '>' operators, so that all three data
  types are covered.
2011-08-21 16:45:38 -04:00
Paul Beckingham
a4fca31e7d Unit Tests
- Added unit tests for the '<' and '>' operators.  Many fail.  Sigh.
2011-08-21 16:28:01 -04:00
Paul Beckingham
ee42f9898f Unit Tests
- Added unit tests for the 'and', 'or' and 'xor' operators.  Many of
  them fail.  As expected.
2011-08-21 15:59:47 -04:00