Tests for Kinode core runtime and processes.
Requires:
E.g., to run the tests here, use
kit run-tests tests.toml
See the Kinode book for a more complete discussion of kit run-tests.
The above command will run the key_value_test twice, and the chat_test and sqlite_test once.
The purpose of running twice is to demonstrate the input syntax for tests.
Tests are process packages with one process within.
They accept a TesterRequest::Run Request.
They are input to the kit run-tests script via a tests.toml file.
The tests.toml file is an array of tests.
Each test will have the runtime reset to a fresh boot at the start.
Each test_package_paths within can specify a series of tests to run without resetting the state between them.
So in the example given above, the following will occur:
- Reset state & launch two fake nodes:
first.osandsecond.os. - Load
chatinto the "master" node: the first of the nodes specified, here,first.os. - Run
sqlite_test,key_value_test, andchat_testwithout resetting state. - Reset state & launch node.
- Run
key_value_test.