Renato Alves
d49a2614ba
Bug - import/export now output JSON as individual objects
...
* For JSON as array, json.array=1 behaves as before
* Tests and add-on scripts used in import tests were updated
2014-10-20 20:21:11 +01:00
Renato Alves
b569504139
Unittest - Refresh TW-1418 which still fails on \-
2014-10-20 20:04:59 +01:00
Renato Alves
d09fcf398e
Unittest - Adjust failing tests due to split of streams
2014-10-20 18:52:18 +01:00
Renato Alves
efdb31fb90
Unittest - default to not merging stdout/stderr during tests
...
* Tests will now check that stderr is used for errors
* Tests were adjusted to reflect the API change
2014-10-20 14:01:21 +01:00
Renato Alves
c9102fd79c
Unittest - SIGABORT was not being correctly identified
...
* In Python if the process receives a signal, the exit code is negative
2014-10-20 13:52:02 +01:00
Renato Alves
b4f33ec0c6
Unittest - Replace None by objects representing the state of stdout/err
2014-10-20 13:29:30 +01:00
Wilhelm Schuermann
cfe267f2e5
Tests
...
- tw-1441.t now calls runError() with merge_streams disabled.
- Taskwarrior only displays an error for the first file that is not found, so only check one.
2014-10-19 09:50:54 -04:00
Paul Beckingham
5275c0ce60
TW-1441
...
- TW-1441 task import continues happily if filename doesn't exist.
2014-10-18 14:41:12 -04:00
Renato Alves
18581a6ca4
Unittest - Avoid second exception on framework tracing error
...
* Prevents masking of the initial exception due to a second one.
2014-10-18 01:29:01 +01:00
Renato Alves
dc4a3e8038
Unittest - dash compatibility on debian/ubuntu
2014-10-17 17:24:50 +01:00
Renato Alves
65b6875846
Unittest - Remove execute bit from template.t and unnecessary comments
2014-10-17 16:42:44 +01:00
Renato Alves
a9c9fbc7df
Unittest - Only run tests that have execute bit set
2014-10-17 16:42:44 +01:00
Paul Beckingham
51f08496b5
Lexer
...
- When parsing '\o/' the state Lexer::typeIdentifierEscape had no exit but a
successful outcome, and looped.
- Fixed test.
2014-10-16 21:22:34 -04:00
Renato Alves
bb060d5ff8
Unittest - Allow specifying custom timeout for slow commands.
...
* Useful when testing with big tasks (1000+ annotations) or sync
operations that take longer than 1 second (default)
2014-10-16 20:52:17 +01:00
Renato Alves
b236e78f2e
Unittest - Testcase for TW-1438
2014-10-16 20:48:45 +01:00
Renato Alves
cf5c7abd01
Unittest - Workaround race condition when killing slow processes
...
* In some cases the process finishes normally very close to the timeout
2014-10-16 16:47:10 +01:00
Renato Alves
6facb140a4
Unittest - Test cases for TW-1436
2014-10-16 15:51:39 +01:00
Renato Alves
1e14097ea5
Unittest - Add test to tw-252 to prevent future regressions
2014-10-14 15:22:52 +01:00
Richard Boß
086a3b0d11
Unit Tests
...
- Added unit tests for tw-1430.t.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-10-13 18:28:06 -04:00
Paul Beckingham
a5563ba135
TW-1424
...
- TW-1424 Using a date of '1824days' (in the future) fails (thanks to Black Ops
Testing).
2014-10-13 00:39:17 -04:00
Paul Beckingham
ca14657f0c
TW-1428
...
- Minor tweaks.
2014-10-12 23:48:55 -04:00
Johannes Schlatow
2c7013cc1c
Color
...
- Supports 'color.uda.<name>.<value>' (TW-1428)
2014-10-12 23:44:43 -04:00
Johannes Schlatow
aa89422b6f
Test
...
- Add test case for TW-1414
2014-10-12 23:30:59 -04:00
Paul Beckingham
9325098b5c
Unit Tests
...
- Commented out the bare word tests. Bare word searching is deprecated and these
failures are the reason why. Retaining the tests for possible later rescue.
- Modified remaining tests because there is a difference in adding 'foo-' and
searching for 'foo\\-'.
2014-10-11 11:29:23 -04:00
Renato Alves
53fd37cae2
Unittest - Also propagate the correct exit code
2014-10-10 16:42:41 +01:00
Renato Alves
40a95e1196
Unittest - Fix case where exit code was incorrectly registered
2014-10-10 16:19:39 +01:00
Renato Alves
a7e2dfcbcc
Unittest - Include additional test cases mentioned in the bugtracker
2014-10-10 12:13:20 +01:00
Renato Alves
dffd4c0477
Unittest - Remove redundant checks
...
self.t == self.runSuccess -> fails if exit code is != 0
2014-10-09 13:17:12 +01:00
Renato Alves
27f21d375b
Unittest - Clarify documentation of runSuccess/runError
2014-10-09 13:16:47 +01:00
Renato Alves
72823a453f
Unittest - Helpers to manage hook scripts during tests
2014-10-08 20:29:56 +01:00
Paul Beckingham
015575295c
Unit Tests
...
- Corrected test description in for 1110.
2014-10-04 18:25:55 -04:00
Paul Beckingham
47cfe515e6
Unit Tests
...
- Fixed cal.t test that fails when EOY is within 3 months.
2014-10-01 18:30:36 -04:00
Paul Beckingham
071cf55c00
Unit Tests
...
- Added a default 'hooks=off' to the basetest class, after it was discovered
that the scan for runnable hooks takes non-trivial time.
2014-09-27 16:49:06 -04:00
Paul Beckingham
c81ae48590
Unit Tests
...
- Added diag.t, which simply runs the 'diagnostics' command and captures output.
The output will be gathered and stored by Flod, which means we can monitor the
platform characteristics.
2014-09-27 11:55:30 -04:00
Paul Beckingham
a3d53b401f
Unit Tests
...
- Renamed bug.1418.t to tw-1418.t, the new convention.
2014-09-27 10:41:18 -04:00
Ralph Bean
d2222a4082
Unit Tests
...
- Added a set of failing tests for the 'filters in operators' bug:
https://bug.tasktools.org/browse/TW-1418
2014-09-27 10:39:26 -04:00
Paul Beckingham
10fa21851b
Unit Tests
...
- Corrected t.t test that assumed ff3 was still supported.
2014-09-14 12:29:34 -04:00
Paul Beckingham
2f03fc5d56
Unit Tests
...
- Added partial match tests for dates.
2014-09-09 22:19:26 -04:00
Paul Beckingham
a51dffc7e1
Unit Tests
...
- Corrected potential for 'modified' to show up in the report, in the
infrequent case where the modification date was >= 1second ago.
2014-09-08 01:54:37 -04:00
Paul Beckingham
ce797c1e6e
Unit Tests
...
- Upgraded to the new template.
2014-09-08 01:52:43 -04:00
Paul Beckingham
150f72eed4
Shadow Files
...
- Removed the shadow file feature, which has caused much suffering since version
1.4.3.
2014-09-08 01:09:24 -04:00
Paul Beckingham
6d36e7cd5b
Unit Test
...
- Removed shadow.t tests ahead of removing the shadow feature, because it is
broken already due to the removal of auto_commit. The feature will live on
as an example hook script, using the same configuration variables perhaps.
2014-09-08 00:33:47 -04:00
Paul Beckingham
fe549094e3
Task
...
- Added 'modified' attribute in ::validate, if not already present. This is not
strictly necessary, but it is good to be explicit.
2014-09-07 23:24:07 -04:00
Paul Beckingham
e15907f3f1
Code Cleanup
...
- Removed unused uti.cpp indentTree function.
2014-09-07 17:32:46 -04:00
Paul Beckingham
66bb5b3906
Code Cleanup
...
- Removed unused util.cpp encode and decode functions.
2014-09-07 17:25:47 -04:00
Paul Beckingham
bffc7a2ac8
Code Cleanup
...
- Removed unused util.cpp combine function.
2014-09-07 17:14:03 -04:00
Paul Beckingham
8a31ccabdc
Code Cleanup
...
- Removed unused util.cpp delay function.
2014-09-07 16:48:42 -04:00
Paul Beckingham
be104ee7c4
Code Cleanup
...
- Removed unused util.cpp confirm3 function.
2014-09-07 16:46:20 -04:00
Paul Beckingham
f17c59b1f6
Code Cleanup
...
- Removed unused text.cpp split_minimal function.
2014-09-07 16:27:46 -04:00
Paul Beckingham
8a904fc287
Code Cleanup
...
- Removed unused text.cpp noVerticalSpace function.
2014-09-07 16:21:32 -04:00