Jakub Wilk
23d63ccb44
Tests: Don't hardcode errno constants
...
The values of ENOENT and ESRCH are architecture-dependent, so don't
assume they're always 2 and 3.
2018-05-14 00:54:10 -04:00
Renato Alves
fd17a68930
Tests: expose 'args' passed to hook scripts
...
- Useful to validate that all the expected arguments were passed with
correct escaping.
- Update test/template.t with one use-case for 'args'
2015-04-06 13:43:41 +01:00
Renato Alves
880ab5d665
Tests - Correct use of non-existent exception
2015-02-15 19:43:09 +00:00
Renato Alves
1bd26fe9ab
Tests - Default to having Python objects as "hook log"
2015-02-15 18:10:36 +00:00
Renato Alves
80c01f3ffb
Tests - Remove assertTriggered, redundant with assertTriggeredCount
2015-02-15 18:10:36 +00:00
Renato Alves
1b218d68f5
Tests - Invalid JSON replies in hooks no longer fail the test framework
2015-02-15 18:10:36 +00:00
Renato Alves
e845a25ea6
Unittest - Replace the timestamp function on wrapper.sh
...
* %N is not supported by /bin/date on BSD systems
2015-02-01 20:35:11 +00:00
Renato Alves
6a3edc88a1
Unittest - properly implement Hook.assert* functions
2015-02-01 19:33:08 +00:00
Renato Alves
db78851b40
Unittest - Hook testing, fixed a few mistakes
2015-01-19 14:54:11 +00: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