mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 00:43:07 +02:00
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)
This commit is contained in:
parent
9ea61e25e8
commit
d261a38d17
9 changed files with 569 additions and 141 deletions
|
@ -26,6 +26,17 @@ BIN_PREFIX = os.path.abspath(
|
|||
os.path.join(CURRENT_DIR, "..", "..", "src")
|
||||
)
|
||||
|
||||
# Default location of test certificates
|
||||
DEFAULT_CERT_PATH = os.path.abspath(
|
||||
os.path.join(CURRENT_DIR, "..", "test_certs")
|
||||
)
|
||||
|
||||
# Default location of test hooks
|
||||
DEFAULT_HOOK_PATH = os.path.abspath(
|
||||
os.path.join(CURRENT_DIR, "..", "test_hooks")
|
||||
)
|
||||
|
||||
|
||||
# Environment flags to control skipping of task and taskd tests
|
||||
TASKW_SKIP = os.environ.get("TASKW_SKIP", False)
|
||||
TASKD_SKIP = os.environ.get("TASKD_SKIP", False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue