Open
Description
This proposal aims to simplify and clarify the structure and usage of test files in Gno.
Proposal (short-term goals):
- Only allow
_test.gno
files to reside alongside.gno
files in the same directory. - Support an optional
testfiles/
ortestdata/
directory. If present, it can contain_filetest.gno
and.txtar
files. Move _filetest.gno to filetests/* folder. #846 - When executing
_filetest.gno
or.txtar
files, display a warning indicating that these are internal testing tools, subject to change or removal, and recommend using_test.gno
files for standard testing.
Long-term goals:
- Deprecate
_filetest.gno
in favor of testable func Example() functions, similar to Go’s testing approach. proposal: testable markdown documentation #2245 - Gradually phase out
.txtar
files as a public testing mechanism, retaining them as internal tools for advanced use cases.
Related:
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Triage