Writing tests
Adding a new test
Midio comes with a simple interface for writing and running tests, found in the Testing
module.
To add a test, first add a Testing Test
event node, and give it a name.

If you open the 'Services' panel and click the 'refresh services list' button, you will get a new item called Testing. Click it to get an overview of all your tests, and buttons to execute them.

Assertions
The Testing module contains several functions which can be used to perform assertions during a test, like Testing.AssertEqual
. These functions can only be used in the context of a test, and will report to the testing service whether they pass or fail.

You can then click on the Run all button to run all tests, or the individual Run buttons to run a single test at a time.

Tips
Clicking on a test in the services panel will make the editor jump directly to where that test is defined.
Last updated
Was this helpful?