Commit 6d265e2a authored by Jean-Loup Haberbusch's avatar Jean-Loup Haberbusch
Browse files

Update Automatic-Tests.md

parent 7796a3f0
Pipeline #18520 passed with stages
in 25 seconds
......@@ -193,7 +193,7 @@ Default value is the name of the current component extension. The resulting test
To add a test that will run a pipeline of actions, apply them and check the result against resulting output, you just need to:
- create a `integration-test` directory in your component or action extension source directory
- create a `integration-testdata` directory in your component or action extension source directory
- add the `ENABLE_INTEGRATION_TEST` option to the `camitk_extension` macro:
```cmake
camitk_extension(...
......@@ -201,7 +201,7 @@ camitk_extension(...
ENABLE_INTEGRATION_TEST
)
```
- create a `asm-input.xml` SCXML document that describes the action pipeline. To create a SCXML file, the best way to start is to run `camitk-imp`, select, set the parameters and apply the actions you want to perform in your test (do not forget to use the `Save` action to output some or all of the resulting component). Then go to the `File` menu and choose `Save History`. You will then have to manually edit the resulting XML file in order to fullfil the requirements (see below)
- create a `asm-input.scxml` SCXML document that describes the action pipeline. To create a SCXML file, the best way to start is to run `camitk-imp`, select, set the parameters and apply the actions you want to perform in your test (do not forget to use the `Save` action to output some or all of the resulting component). Then go to the `File` menu and choose `Save History`. You will then have to manually edit the resulting XML file in order to fullfil the requirements (see below)
- rename all the input files needed to run your pipeline to the normalized form `input-#.xxx` and copy them to the `integration-test` subdirectory
- rename all the expected output files to compare with actual output to the normalized form `output-#.xxx` and copy them to the `integration-test` subdirectory
- run the CMake configuration again, et voilà, a new test called `extensiontype-integration-test` should be available
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment