summaryrefslogtreecommitdiffstats
path: root/conf.d
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-06-14 19:05:27 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-07-10 17:12:13 +0200
commitb9d8eaccf941b9ead9b98ca15642c18b4b0e8296 (patch)
tree73a8905a22077b7cf103b0d6aa8b035ccee2dfa1 /conf.d
parente3dae6ef657efe3657d35f97a2fa65210e6d950d (diff)
Add possibility to create custom test function
Change-Id: I83de0cc0edce37cb0d512fce0cec560659f625a7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/project/lua.d/aft.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf.d/project/lua.d/aft.lua b/conf.d/project/lua.d/aft.lua
index dfaa80d..c0f047a 100644
--- a/conf.d/project/lua.d/aft.lua
+++ b/conf.d/project/lua.d/aft.lua
@@ -161,6 +161,12 @@ function _AFT.testVerbError(testName, api, verb, args, cb)
end})
end
+function _AFT.testCustom(testName, testFunction)
+ table.insert(_AFT.tests_list, {testName, function()
+ testFunction()
+ end})
+end
+
--[[
Make all assertions accessible using _AFT and declare some convenients
aliases.