Autotests
  • 10 Dec 2023
  • 1 Minute to read
  • Dark
    Light
  • PDF

Autotests

  • Dark
    Light
  • PDF

Article Summary

Composer supports autotests which is a feature that can be used to verify that an instance of Composer (and a project) runs without issues.

This can be useful during the development of plugins or new features, testing of new deployment processes, operating systems, etc.

The autotest feature will start the application, load a project, run for x seconds and check if there has been any error (fatal or error level) during runtime.

If an error has been detected, the application will exit with a specific return code indicating that there has been an error.

Both the Desktop and the Runtime versions of Composer support autotest.

To launch the application with autotests, add the -a option followed by a duration (in seconds). Examples:

  • VindralComposer -p myproject.prj -a 10
  • VindralComposerRuntime -p myproject -a 10

In the examples above, Composer will load myproject and run for 10 seconds.

Exit codes:

  • AUTOTEST_OK = 254 - no errors or fatal errors occurred 
  • AUTOTEST_FAIL = 1 - one or more errors occurred
  • AUTOTEST_FAIL_OUTPUT_MISMATCH = 2 - if a reference image is found, autotest will compare the output image of composer with the reference image. If the images don't match (from a visual perspective), the application will return AUTOTEST_FAIL_OUTPUT_MISMATCH.



Was this article helpful?