-
Notifications
You must be signed in to change notification settings - Fork 447
Description
From #1913.
I would prefer if
testscript/ txtar remained an internal tool. Discussing with @gfanton on the review meeting, we may still benefit from unifying how txtar works (rather than having two differing impl's in gnoland and cmd/gno), and having it as a command (which we can still get coverage information for).However, long-term, I don't like to use txtar as documentation. While they are decently straightforward to use, thanks to @gfanton's acute design taste :), I think we should try to have something better to make testable examples.
An idea that sprung up, was to have markdown files for documentation of a realm, with the code blocks being testable.
@moul: Yes, or alternatively, provide testable examples and adhere to documentation standards that include comments in .gno files.
We need to have good support for testable examples our tests, same as Go. From this issue and ensuing discussion, with @gfanton we discussed the possibility of having a way to create tests as markdown files; which serve primarily as documentation, but can show usage examples using gnokey and which can be tested.
This should be in opposition to using txtar tests for public usage; keeping them mostly for internal testing, but allowing to document how a realm is practically used publicly.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Status