-
Notifications
You must be signed in to change notification settings - Fork 408
gno test
Clarify and limit test file usage
#4178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi moul ! I had some questions about how you see the proposal: Does the test fails when there is no |
I like the idea of enforcing tests and marking packages without test files as failing in |
We should check out joon's work on #2357 :) Looks good to me, I don't know if we really want to support .txtar beyond what we currently support though. |
This proposal aims to simplify and clarify the structure and usage of test files in Gno.
Proposal (short-term goals):
_test.gno
files to reside alongside.gno
files in the same directory.testfiles/
ortestdata/
directory. If present, it can contain_filetest.gno
and.txtar
files. Move _filetest.gno to filetests/* folder. #846_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:
_filetest.gno
in favor of testable func Example() functions, similar to Go’s testing approach. proposal: testable markdown documentation #2245.txtar
files as a public testing mechanism, retaining them as internal tools for advanced use cases.Related:
_filetest.gno
tofiletests/*
foldercc @thehowl @gfanton
The text was updated successfully, but these errors were encountered: