Commit graph

655 commits

Author SHA1 Message Date
Paul Beckingham
5893bfede5 Revert "Unit Tests"
This reverts commit 93a241417e.
2014-05-22 22:48:31 -04:00
Paul Beckingham
93a241417e Unit Tests
- Removed tests that are no longer relevant, and fail.
2014-05-22 16:14:05 -04:00
Paul Beckingham
c9f6a4b9df Unit Tests
- Added Variant::operator_partial unit tests, based initially on
  ::operator==.
2014-05-19 20:15:32 -04:00
Renato Alves
08c11da702 Testing
Expose location of taskd.log and taskd.pid
2014-05-17 22:05:30 +01:00
Renato Alves
29d5de1154 Testing
Add a class to manage one or more taskd servers running on the same
machine.
2014-05-17 21:44:51 +01:00
Renato Alves
1d85416692 Testing certificates
Add certificates for use with taskd and task
2014-05-17 21:44:51 +01:00
Renato Alves
f54494d45a Unittesting basemodule
merge_streams was not having the desired effect
2014-05-17 21:44:51 +01:00
Paul Beckingham
4357f9c545 Unit Tests
- hyphenate.t was maing assumptions about report output that can be reduced.
2014-05-11 15:05:56 -04:00
Paul Beckingham
980ab680f3 Unit Tests
- Calendar command needs to be explicit (because calendar/calc share the first
  three letters).
2014-05-11 14:33:49 -04:00
Paul Beckingham
07a1f9d6b5 Unit Tests
- Added tests for Tree::countTags.
2014-05-06 21:17:09 -04:00
Paul Beckingham
6cd6910968 Unit Test
- Modified rc.t to use the lightweight _version command, instead of invoking
  all the default command machinery, for a simple rc creation.
2014-04-24 13:04:28 -04:00
Paul Beckingham
b01906cd62 Unit tests
- New command line parser is live for DOM access and DOM testing.
2014-04-24 12:00:50 -04:00
Paul Beckingham
d99f40eaad Code Cleanup
- Removed obsolete text.cpp splitq funciton, which is superceded by
  Lexer::split.
2014-04-24 09:35:02 -04:00
Paul Beckingham
8a5d7bb569 Unit Tests
- Added more Lexer::split tests.
2014-04-24 09:08:19 -04:00
Paul Beckingham
386bcea60e Text
- Removed splitq function and tests, migrated code over to the new
  Lexer::split.
2014-04-23 23:20:56 -04:00
Paul Beckingham
611812007a Lexer
- Implemented Lexer::word, which is just like ::token, but does not
  understand dates, durations or operators.
- Implemented Lexer::split, which uses Lexer::word.
- Added unit tests.
2014-04-23 23:19:41 -04:00
Paul Beckingham
d099a4edfd Text Handling
- Migrated the splitq implementation over to the Lexer. Now it handles all
  Unicode spaces.  Jsut need to obsolete the old version.
2014-04-23 17:34:07 -04:00
Renato Alves
13d7961813 Refactor some tests to avoid redoing setUp/tearDown once per test 2014-04-13 20:12:55 +01:00
Renato Alves
2e64231886 Refactor testing framework to allow using callTask* methods inside @classmethods 2014-04-13 20:11:28 +01:00
Renato Alves
be59e526f1 Rename method to match the current testing API 2014-04-13 19:51:00 +01:00
Renato Alves
e0a39b0bc3 Merging in latest from upstream (TM/task:refs/heads/2.4.0)
* commit '75f938463e':
  TW-285
2014-04-13 18:45:56 +00:00
Paul Beckingham
75f938463e TW-285
- Fixed unit test structural error.
2014-04-13 14:40:11 -04:00
Renato Alves
0b1732fcef Merging in latest from upstream (TM/task:refs/heads/2.4.0)
* commit 'd8b7d914ac': (31 commits)
  TW-5
  TW-306
  Code Cleanup
  Documentation
  TW-285
  Unit Tests
  Unit Tests
  Code Cleanup
  TW-115
  TW-1257
  TW-1300
  Code Cleanup
  Bug
  ChangeLog
  TW-1301
  Bug TW-1302
  Diagnostics
  Bug TW-1254
  Documentation
  Bug TW-1295
  ...
2014-04-13 18:23:10 +00:00
Paul Beckingham
3038b11780 TW-285
- TW-285 DUETODAY doesn't give any output (thanks to Jostein Berntsen).
- Added unit tests.
2014-04-13 09:18:58 -04:00
Paul Beckingham
88346f8ed3 Unit Tests
- Cleaned up unit tests.
2014-04-12 18:23:48 -04:00
Paul Beckingham
adde9eec2a Unit Tests
- Renaming new tests from bug.*.t and feature.*.t to tw-*.t. It is not
  important whether the test covers a bug or a feature.
2014-04-12 16:07:32 -04:00
Paul Beckingham
501194abfa TW-1300
- TW-1300 _get could use return codes (thanks to Scott Kostyshak).
2014-04-12 13:32:35 -04:00
Paul Beckingham
05c90b1779 Bug
- Fixed bug in named entity lookup.
- Removed obsolete failing test.
2014-04-12 12:28:48 -04:00
Paul Beckingham
25b8082fbd Diagnostics
- Added diagnostic token dump to 'calc' in debug mode, after token substitution
  so the new tokens can be seen.
- Added unit tests to look for parser syntax errors.
- Added test for '2--3'.
2014-04-06 23:57:15 -04:00
Paul Beckingham
6354bc09ab Bug TW-1295
- TW-1295 test/time.t fails on the last day of the month (thanks to Jakub
          Wilk).
2014-04-05 11:25:20 -04:00
Paul Beckingham
5965a85151 - Bug TW-1296
- TW-1296 make test/run_all exit with non-zero code if a test fail (thanks to
          Jakub Wilk).
2014-04-05 10:39:38 -04:00
Paul Beckingham
065cb2ef01 Bug
- Correct a DST error in date handling.
2014-03-13 21:15:42 -04:00
Renato Alves
02d175b10b Tests - Include task stdout/err if exit code != 0 2014-03-07 01:09:23 +00:00
Renato Alves
39efcf11bd Unit Tests TW-1254
- Added unit tests for TW-1254.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-03-06 16:40:05 -05:00
Renato Alves
08fc7c3978 Remove unecessary import from bug.360 2014-02-27 19:40:02 +00:00
Paul Beckingham
70f5588867 Unit Tests
- Fixed project.t tests that were broken after the projects report was
  truncated.
2014-02-19 23:26:01 -05:00
Renato Alves
3a45a2f639 Unit tests - Migrated bug.360 to python 2014-02-19 23:01:21 -05:00
Renato Alves
3c28566590 Unit tests - version.t now uses BaseTestCase 2014-02-19 23:01:18 -05:00
Renato Alves
74bca0e5bf Unit tests - Add a BaseTestCase which prepares and isolates the environment of each test 2014-02-19 23:01:16 -05:00
Renato Alves
b250ded517 Unit tests - Replace old version.t with the new python based version.py 2014-02-19 23:01:11 -05:00
Renato Alves
5daca69b4b Unit tests - Keep a template as example for the new unittesting framework 2014-02-19 23:01:07 -05:00
Paul Beckingham
1170a43f6b Unit Tests
- Removed name of old module from unit tests.
2014-02-15 13:28:49 -05:00
Paul Beckingham
9eaac5ccd5 Unit Tests
- Typo in test (thanks to Jakub Wilk).
2014-02-13 18:19:38 -05:00
Renato Alves
112d4bfb14 Improvement TW-1255
- #TW-1255 New testing framework (thanks to Renato Alves).

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-02-09 20:10:24 -05:00
Paul Beckingham
00062f4dae Unit Tests
- Added shebang.
2014-02-09 16:18:08 -05:00
Renato Alves
93f0e14073 Initial unittest skeleton using python and TAP 2014-02-02 20:57:36 -05:00
Paul Beckingham
523dce8f32 Code Cleanup
- Standardized headers.
2014-02-01 14:33:37 -05:00
Paul Beckingham
22303e8e1c Portability
- Now uses POSIX mktime instead of timelocal calls.
2014-01-27 17:24:42 -05:00
Paul Beckingham
a95ff5a165 Unit Tests
- Added a Python TAP-compliant module so that unit tests in Python are now
  supported.  Not that there are any, yet.
2014-01-26 14:04:41 -05:00
Paul Beckingham
f729c5ca80 Unit Tests
- Removed color.deprecated.t, which existed only to make sure that
  deprecated color was marked accordingly.  Now that this is removed,
  the test is moot.
2014-01-26 14:03:06 -05:00