Skip to content

Testing ๐Ÿงช

Currently, the project contains unit and integration tests. Integration tests use Gossamer, which imports all the necessary Host functions and interacts with the Runtime.

make test

or

make test-unit
make test-integration

Debug ๐Ÿ›

To aid the debugging process, there is a set of functions provided by the logger instance that can be called within the Runtime to log messages.

logger := log.NewLogger()

logger.Critical(message string) // logs and aborts the execution
logger.Warn(message string)
logger.Info(message string)
logger.Debug(message string)
logger.Trace(message string)