ScaDS.ai-Logo

Run automated tests

What are automated tests?

A large part of the source code of OmniOpt2 is to make sure that everything works as expected. This code executes real test cases and looks at the results to check if they are as expected. Many things in OmniOpt2 get tested automatically to see if they work properly. All test related files are in the folder .tests.

Why would I want to run those?

OmniOpt2 is supposed to be run on a wide variety of Linux systems. Not every system specific thing can be caught, though, since I cannot test it manually on all the available Linux-distributions. If you encounter problems in OmniOpt2, I may ask you to run those tests and submit the output to me, so that I can debug it thoroughly.

You may have made a change to OmniOpt2 and want to see if it still runs and you haven't broken anything.

How to run tests?

To run all tests, which takes a lot of time, run:

./.tests/main

Possible options:

No arguments found.

Example on the quickest useful test

When this succeeds without any errors, you can be reasonably sure that OmniOpt2 will properly do the following things under normal circumstances:

./.tests/main --num_random_steps=1 --max_eval=2 --reallyquick

All test scripts