Commit graph

1054 commits

Author SHA1 Message Date
Paul Beckingham
ba9043e6a7 Unit Tests
- Removed debugging output from test - that was not helping.
- Added more basic tests because FreeBSD is misbehaving.
2014-11-10 21:04:22 -05:00
Paul Beckingham
9936157704 TW01438
- TW-1438 Configuration setting rc.confirmation=no no longer disables
          confirmation requests (thanks to Adam Coddington).
2014-11-10 20:05:28 -05:00
Renato Alves
ff9b8217e2 Unittest - let vramsteg count non-executable tests
Currently harmless as there's only 1 non-executable test
2014-11-10 12:00:21 +00:00
Renato Alves
1a4774a2d8 Revert "Unittest - TOTAL tests shouldn't include non-executable tests"
TESTBLOB can have multiple arguments. Doesn't work with find.

This reverts commit 3dfbed6e4c.
2014-11-10 11:56:16 +00:00
Renato Alves
3dfbed6e4c Unittest - TOTAL tests shouldn't include non-executable tests 2014-11-10 11:40:48 +00:00
Renato Alves
94cd3df675 Unittest - Also check for execute bit if not running in verbose mode 2014-11-10 11:40:18 +00:00
Paul Beckingham
3e67d68f57 TW-295
- TW-295 Replacing annotations or descriptions which contain '/'s (thanks to
         Johannes Schlatow).
2014-11-09 20:07:27 -05:00
Paul Beckingham
4bbb6fea99 Unit Tests
- Added a terminator to the task that needs it.
2014-11-09 17:35:50 -05:00
Paul Beckingham
19eaae88cd Unit Tests
- Removed a test from tw-1418.t that doesn't need an escape.
2014-11-09 17:18:43 -05:00
Paul Beckingham
879b1edb5c Unit Tests
- Escapes / characes in search patterns, so that 'foo/' --> 'foo\/', which
  then allows '/foo\//'. In Python, this needs one more: '/foo\\//'.
2014-11-09 17:11:21 -05:00
Paul Beckingham
dc97348335 Revert "Unit Tests"
This reverts commit a00c5b11c8.
2014-11-09 14:53:43 -05:00
Paul Beckingham
a00c5b11c8 Unit Tests
- Modified tests to include a terminator, to resolve ambiguity.
2014-11-09 13:57:35 -05:00
Paul Beckingham
008c7503b3 Unit Tests
- Corrected test count markers.
2014-11-09 12:24:30 -05:00
Paul Beckingham
83894ae559 Unit Tests
- Migrated to new template.
2014-11-09 12:11:56 -05:00
Paul Beckingham
3b1f244f42 CLI/Context
- Reordering init sequence.
- Removed ::assumeLocations.
2014-11-09 10:38:40 -05:00
Paul Beckingham
c818a2fa3a Unit Tests
- Removed whitespace for readability.
2014-11-08 15:05:54 -05:00
Paul Beckingham
db13a676bb Unit Tests
- Enabled failing tests.  Maybe it can be fixed instead.
2014-11-08 14:48:27 -05:00
Paul Beckingham
529217cf75 Unit Tests
- One test has the rc.monthsperline:1 on the wrong command. Not sure what was
  going on there. Not important.
2014-11-04 22:01:07 -05:00
Paul Beckingham
c817607465 Unit Tests
- Upgraded to the new template.
2014-11-04 21:42:03 -05:00
Paul Beckingham
0c61f50da6 Unit Tests
- Corrected for absolute path names in the Config::load timing.
2014-11-02 23:59:22 -05:00
Paul Beckingham
9ae3bcb7ef Unit Tests
- Corrected description for the version tests.
2014-11-02 23:50:38 -05:00
Paul Beckingham
71b33453f1 Unit Tests
- Fixed mistake introduced by template upgrade.
2014-11-02 23:45:41 -05:00
Paul Beckingham
6d75045658 Tree
- Eliminated Tree object from the repository.
2014-11-02 22:30:21 -05:00
Paul Beckingham
083b0cb0de CLI
- Implemented ::getBinary.
- Removed Context::program, and converted DOM and dom.t to call ::getBinary.
2014-11-02 21:49:42 -05:00
Paul Beckingham
78625d00ec Unit Tests
- Upgraded to the new template.
2014-11-01 23:06:27 -04:00
Paul Beckingham
9bee3a6c92 Unit Tests
- Upgrded to the new template.
2014-11-01 22:40:43 -04:00
Paul Beckingham
a078ad41e8 Task
- Removed unnecessary include.
2014-11-01 21:56:18 -04:00
Renato Alves
d261a38d17 Unittest - Enhanced support for testing hooks (wip)
* It is now possible to test:
  * Hook Input/Output on STDIN/STDOUT channels
  * Exit code of hook script
  * Execution count (how many times the hook was executed)
  * Timestamp execution (when was the hook executed - milisec resolution)
2014-11-02 00:01:06 +00:00
Paul Beckingham
4c4204ee0d Unit Tests
- Removed debug arg.
2014-10-31 19:12:23 -04:00
Paul Beckingham
7417737bbe Unit Tests
- Upgraded to the new template.
2014-10-31 08:51:06 -04:00
Paul Beckingham
5586a3c8cc Unit Tests
- Converted to use the new template.
2014-10-27 22:03:57 -04:00
Paul Beckingham
47e8ae6c02 Unit Tests
- Updated to use the new template.
2014-10-26 10:48:02 -04:00
Paul Beckingham
822031bf0b Unit Tests
- Upgraded to user the new template.
- Removed code that detected EOM an skipped tests. This should no longer be
  needed with the ISO date support, where EOM is the true EOM.
2014-10-26 09:32:34 -04:00
Paul Beckingham
74526ee564 CLI
- Converted ::safety from Parser to CLI.
- Updated unit tests to use the new template.
- Added tests to cover both values of rc.allow.empty.filter.
2014-10-26 09:02:51 -04:00
Paul Beckingham
283a1aa8ef DOM
- Converted DOM and unit test from Parser to CLI.
2014-10-25 22:55:31 -04:00
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