The Test Commands
Use the test command in Flogo to run unit test on your Flogo app.
Syntax: ./<app-executable> --test --app <path to application json> --test-file <path to flogotest file> --test-suites <testsuite1, testsuite2> --output-dir <path to store .testresult file> --result-filename <custom name of .testresult file>
Options | Description and example |
---|---|
--test | Runs a unit test on the specified <executable_filename > app. |
--app (Optional) |
Application JSON path on which the unit testing is to be done. If application JSON is not provided it takes the embedded app in the binary. |
--test-file |
The .flogotest file that the user has obtained by exporting a unit test file. |
--test-suites (optional) |
Test suite names that are to be run in unit testing. If test suites are not provided, tests are executed for all test suites in the test file. Example: --test-suites testsuite1, testsuite2 |
--output-dir (optional) |
Output directory in which the test results are stored. If the output directory is not provided it stores the test result in the working directory. |
--result-filename (optional) |
Name of the unit testing output file. If the test result file name is not provided it stores as |