Skip to content

kinode-dao/core_tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

core_tests

Tests for Kinode core runtime and processes.

Usage

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.

Discussion

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:

  1. Reset state & launch two fake nodes: first.os and second.os.
  2. Load chat into the "master" node: the first of the nodes specified, here, first.os.
  3. Run sqlite_test, key_value_test, and chat_test without resetting state.
  4. Reset state & launch node.
  5. Run key_value_test.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages