You can enter the tests/ folder and since there is a main.rye you can run it with a dot and you will get the following:
(mycomp) -> cd tests/
(mycomp) -> rye .
# Rye's simple testing tool
use test or doc command
Examples:
rye . test # runs all tests
rye . doc # generates the docs out of tests
rye . test ls # lists the test sections available
rye . test base # runs a specific test section
Example of use:

The test sections are organized thematically:
Run a specific section:
(mycomp) -> rye . test base
# BASE #
Boolean
Functions that work with true and false values.
true ✓ ✓
false ✓ ✓
not ✓ ✓ ✓ ✓
...
The ./regen script in the tests/ folder regenerates all .info.rye files from the Go source code comments.
The script uses the cmd/rbit/rbit tool to parse Go code and extract test definitions.
cd tests/
./regen
The regen script groups multiple builtin files into themed info files:
# base.info.rye combines many core modules:
../cmd/rbit/rbit ../evaldo/builtins_base_boolean.go > base.info.rye
../cmd/rbit/rbit ../evaldo/builtins_base_numbers.go >> base.info.rye
../cmd/rbit/rbit ../evaldo/builtins_base_strings.go >> base.info.rye
# ... (more modules appended)
# formats.info.rye combines format-related modules:
../cmd/rbit/rbit ../evaldo/builtins_regexp.go > formats.info.rye
../cmd/rbit/rbit ../evaldo/builtins_json.go >> formats.info.rye
../cmd/rbit/rbit ../evaldo/builtins_bson.go >> formats.info.rye
# ... etc
The same tests/main.rye script can generate HTML documentation from the .info.rye files:
cd tests/
rye . doc
# docs generated
This creates HTML files (base.html, table.html, formats.html, etc.) using templates from tests/tpl/.
The generated docs are available online at https://ryelang.org/info
The main.rye defines two contexts:
This means the same .info.rye files serve both as executable tests and documentation source!
Example .info.rye structure:
section "Boolean " "Functions that work with true and false values." {
group "true"
"Returns a boolean true value."
{
arg `none`
returns `boolean true value`
}
{
equal { true } true
equal { true |type? } 'boolean
}
{ `` }
}
Each group block contains:
Tests are provided as comments above builtin function definitions in Go files. This keeps tests close to code. See the One source page for more information about how tests, documentation, and examples are unified in one place.