typst-test
typst-test copied to clipboard
A test runner for typst projects.
## Description When a test compiles successfully but has warnings, they're not emitted. Displaying these warnings is important for catching deprecations early. It's also important to catch non-fatal regressions, like...
## Description Tests which emit only warnings are currently treated as passing in the compilation stage, it would be great to allow users to have tests fail, if they emit...
## Description ## Steps to Reproduce the Problem 1. Create a manifest at `$root/typst.toml` which contains `tool.typst-test.vcs = "git"` 1. Run `typst-test init -r $root --vcs git` 1. Run `typst-test...
There are three approaches to this problem: 1. Provide a fixed set of typst versions which are supported per typst-test version. - lots of duplicated code to make rustc happy...
As the title says, blocked by [typst#4540](https://github.com/typst/typst/pull/4540).
## Description `typst-test` should be able to compile the document contained in a template's scaffold and compare it to a reference. ## Proposed Solution For a template test to be...
Allow configuring the test set which is used by default using config options on a per-command basis. This also ties into being able to configure custom test set aliases. One...
When a test template is configured, running `add` with no extra parameters will panic due to running into a `todo!` macro. `add` still lacks the parameters and setup to create...
At some point, possibly after 0.1.0, typst-test should support doc tests by searching in doc comments for code blocks marked either `example` or `test`, run them and possibly compare them...
A lot of things are only partially documented: - the test set language is unfinished and only has a single example - the folder structure of tests is not documented...