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
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
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
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
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
Renato Alves
d9d3b47c31
Unittest - default to ../src/ as location for task/taskd binaries
2014-07-31 17:03:49 +01:00
Renato Alves
b58c6566af
Unittest - Make client credentials available as a dictionary
2014-07-19 02:06:21 +01:00
Renato Alves
4c88726dab
Unittest - Make taskd the first argument of Task()
...
* The most common case is to bind a client to a server and not
customizing the location of the task binary
2014-07-19 00:45:17 +01:00
Renato Alves
00ee5b2289
Unittest - Skip tests that use faketime if not available
2014-07-18 17:20:27 +01:00
Renato Alves
15795e514d
Unittest - Implement faketime for use in taskw
2014-07-18 17:12:28 +01:00
Renato Alves
02683aecd7
Unittest - Make is easier to reset env vars of task and taskd
2014-07-18 14:01:04 +01:00
Renato Alves
72e8a73ae0
Unittest - Add prefixes to task and taskd temporary folders
2014-07-18 13:20:06 +01:00
Renato Alves
04f5f7e2a8
Unittest - exit code may be None if process failed to finish
2014-07-15 01:37:17 +01:00
Renato Alves
617183612c
Unittest - Don't display "task diag" by default on error
2014-07-14 16:10:44 +01:00
Renato Alves
4ae56838e4
Unittest - Include "task diag" output on error
...
* If any command passed to runSuccess or runError returns an unexpected
exit code, the output of 'task diag' will be added to stdout/stderr.
2014-07-14 00:25:43 +01:00
Renato Alves
906ca1a4aa
Unittest - docstring clarification
...
* Clarify how the alias is supposed to work in case readers are not
familiar with what __call__ does.
2014-07-13 23:10:16 +01:00
Renato Alves
6a28c2d175
UnitTest - Alias for runSuccess
...
* Use t() (given t = Task()) as an alias to t.runSuccess()
2014-07-13 23:09:23 +01:00
Renato Alves
ceaf9d3462
Unittest - Add a line break on last line of initial config
2014-07-13 23:09:00 +01:00
Renato Alves
715a414abd
UnitTests
...
* Taskd and Taskw classes for testing are now available
* Testing of server and client can now be performed.
* The newer test wrappers will eventually replace the BaseTest class
2014-07-06 02:03:04 +01:00