tests
This directory contains integration tests for the GnoVM. This file aims to provide a brief overview.
GnoVM tests and filetests run in a special context relating to its imports.
You can see the additional Gonative functions in gnovm/pkg/test/imports.go.
You can see additional standard libraries and standard library functions
available in testing in gnovm/tests/stdlibs.
files
: GnoVM filetests
The most important directory is files
, which contains filetests for the Gno
project. These are executed by the TestFiles
test in the gnovm/pkg/gnolang
directory.
The files/extern
directory contains several packages used to test the import
system. The packages here are imported with the prefix
github.com/gnolang/gno/_test/
, exclusively within these filetests.
Tests with the _long
suffix are skipped when the -short
flag is passed.
These tests are largely derived from Yaegi, licensed under Apache 2.0.
stdlibs
: testing standard libraries
These contain standard libraries which are only available in testing, and
extensions of them, like std.TestSkipHeights
.
other directories
backup
has been here since forever; and somebody should come around and delete it at some point.
challenges
contains code that supposedly doesn't work, but should.
integ
contains some files for integration tests which likely should have
been in some testdata
directory to begin with. You guessed it,
they're here until someone bothers to move them out.