From c96df58a88b60c7501b3c8a758c0277c17088371 Mon Sep 17 00:00:00 2001 From: Corentin Le Gall Date: Thu, 19 Jul 2018 15:57:30 +0200 Subject: Changed doc to GitBook format + added doc -Changed README.md to a complet GitBook doc. -Added explanations about EvtGrpReceived functions. -Corrected mistakes + reduced lines length. Change-Id: I1a077ddf6acb520a9158de658d3c09b12a2029d4 Signed-off-by: Corentin Le Gall --- docs/WriteYourTests/1_BindingConfiguration.md | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/WriteYourTests/1_BindingConfiguration.md (limited to 'docs/WriteYourTests/1_BindingConfiguration.md') diff --git a/docs/WriteYourTests/1_BindingConfiguration.md b/docs/WriteYourTests/1_BindingConfiguration.md new file mode 100644 index 0000000..9980357 --- /dev/null +++ b/docs/WriteYourTests/1_BindingConfiguration.md @@ -0,0 +1,38 @@ +# Binding configuration + +The file `aft-test.json` contains the controller binding configuration. Here, +you have to change or define the *files* key in the *args* object of the +*testVerb* section, *testVerb* is an array of verb definition which are +meant to launch different LUA test files. + +Also you MUST specify which *api* you need to trace to perform your tests. +Specify which api to trace using a pattern. + +Edit the JSON array to point to your tests files. + +Here is an example: + +```json +{ + "id": "http://iot.bzh/download/public/schema/json/ctl-schema.json#", + "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json#", + "metadata": { + "uid": "Test", + "version": "1.0", + "api": "afTest", + "info": "Binding made to test other bindings", + "require": [ + "hello" + ] + }, + "testVerb": { + "uid": "launch_all_tests", + "info": "Launch all the tests", + "action": "lua://AFT#_launch_test", + "args": { + "trace": "hello", + "files": ["aftTest.lua","helloworld.lua"] + } + } +} +``` \ No newline at end of file -- cgit 1.2.3-korg