summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2023-12-27bindings: Remember filename when loading bindingsDaniel Silverstone1-2/+7
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-11-04feat: generate library documentation from bindings filesLars Wirzenius1-1/+1
Add a `doc` field to a binding. It's a string meant to contain markdown. Add subcommand `subplot libdocgen YAML -o MD` to read a bindings file and output a markdown file documenting the steps in the bindings file, and the type of captures, and the documentation for the step. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-08-12steps: Pass location information into scenarios and scenario steps for error ↵Daniel Silverstone1-2/+7
messages Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-02-11chore: use variables in Rust format stringsLars Wirzenius1-2/+2
Change this: format!("{}", foo) into this: format!("{foo}") Support for this feature was added in Rust 1.58 (see https://github.com/rust-lang/rust/releases/tag/1.58.0) and in 1.67 clippy suggests about this. Because the new style seems to be where the Rust ecosystem is going, I think Subplot should follow to avoid being needlessly different from most other projects. Sponsored-by: author
2022-10-25feat! subplot metadata field for authorsLars Wirzenius2-2/+4
Rename the field "author", which takes a single string value, to "authors", which takes a list of strings. This way we're consistent for single- and multi-author documents. Sponsored-by: author
2022-10-22(steplibrary): Update files and runcmd to use new path typeDaniel Silverstone2-3/+9
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-09-06feat! read document metadata from a YAML fileLars Wirzenius4-28/+25
This is a huge change all in one commit, sorry. However, as it changes a fundamental part of the command line interface (namely, what constitutes as the input file), there doesn't seem a way to break this into a tidy series of small commits. Most of the diff is in subplot.md, where every scenario that invokes Subplot needs multiple changes, thus touching much of the file. The overall change is that where we previously had document metadata in embedded YAML in the Markdown file, we now have it in a separate YAML file. The Markdown file is named in the YAML file. We still parse the Markdown with Pandoc for everything, except codegen. Switching from Pandoc to pulldown_cmark for parsing will be another big change that I didn't want to include in this huge change set. Sponsored-by: author
2022-03-25feat: add "file doesn't contain" step to lib/files, Python and RustLars Wirzenius1-0/+1
Sponsored-by: author
2022-01-01tests: Make runcmd.md a common test set nowDaniel Silverstone4-3/+34
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-01-01tests: Move files.md to be common between Python and subplotlibDaniel Silverstone5-1/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-11-19subplots: Upgrade metadata for polyglot docsDaniel Silverstone3-12/+12
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-10-13tests: Fix up use of absolute paths for false/true/echo etc.Daniel Silverstone2-21/+21
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-09-07tests: Move Python tests out of share/Daniel Silverstone5-0/+532
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-09-07subplot: Properly support polyglot bindingsDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-09-07bindings: Initial move toward multi-lingual bindingsDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-06-18tests: Move bindings microbenchmark to an integration testDaniel Silverstone1-0/+55
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>