Skip to content

Commit

Permalink
tests: Update typst-test to tytanic (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf authored Feb 17, 2025
1 parent e4afe00 commit b9aac9a
Show file tree
Hide file tree
Showing 129 changed files with 6 additions and 44 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ jobs:
uses: baptiste0928/cargo-install@v3
with:
crate: just
- name: Install typst-test from github
uses: baptiste0928/cargo-install@v3
- name: Install tytanic
uses: baptiste0928/cargo-install@v2.2.0
with:
crate: typst-test
git: https://github.com/tingerrr/typst-test.git
tag: ci-semi-stable
crate: tytanic
- uses: typst-community/setup-typst@v3
with:
typst-version: '0.12.0'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ To install `just` on your system, use your systems package manager. On Windows,

This package comes with some unit tests under the `tests` directory.
To run all tests you can run the `just test` target. You need to have
[`typst-test`](https://github.com/tingerrr/typst-test/) in your `PATH`: `cargo install typst-test --git https://github.com/tingerrr/typst-test`.
[`tytanic`](https://github.com/tingerrr/tytanic/) in your `PATH`: `cargo install tytanic`.

## Projects using CeTZ
- [cirCeTZ](https://github.com/fenjalien/cirCeTZ) A port of [circuitikz](https://github.com/circuitikz/circuitikz) to Typst.
Expand Down
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ install target="@local":
./common/scripts/package "{{target}}"

test *filter:
typst-test run {{filter}}
tt run {{filter}}

update-test *filter:
typst-test update {{filter}}
tt update {{filter}}

gallery:
for f in "{{gallery_dir}}"/*.typ; do typst c "$f" "${f/typ/png}"; done
Binary file added tests/anchor-centroid/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Binary file removed tests/anchor/centroid/ref/1.png
Binary file not shown.
Binary file removed tests/anchor/copy-anchors/ref/1.png
Binary file not shown.
Binary file removed tests/anchor/root/ref/1.png
Binary file not shown.
Binary file added tests/arc-previous-position/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes
File renamed without changes.
Binary file removed tests/arc/last-pos/ref/1.png
Binary file not shown.
File renamed without changes
File renamed without changes.
Binary file modified tests/bezier-through/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions tests/bezier-through/test.typ
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,3 @@
bezier-through((0, -1), (-calc.cos(45deg), -calc.sin(45deg)), (-1, 0))
})
})

#test-case({
import draw: *

set-style(mark: (start: "<", end: ">", stroke: blue, scale: 1))
bezier-through((-1,0), (1,0), (3,0), mark: (start: "<", end: "o", size: .2))
bezier-through((.5,0), (1,1), (1.5,0))
bezier-through((0,0), (1,-2), (2,0), mark: (start: "|", end: "<", size: .5))
})
Binary file modified tests/bezier/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/circle-through/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
Binary file added tests/content-span/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes
File renamed without changes.
Binary file removed tests/content/span/ref/1.png
Binary file not shown.
File renamed without changes
File renamed without changes.
Binary file added tests/copy-anchor/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Binary file modified tests/cube/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/custom-mark/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Binary file modified tests/decorations/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes.
Binary file added tests/empty-group/ref/1.png
File renamed without changes.
Binary file modified tests/empty/ref/1.png
Binary file modified tests/grid/ref/1.png
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
Binary file added tests/group-none/ref/1.png
File renamed without changes.
Binary file added tests/group-padding/ref/1.png
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
Binary file removed tests/group/empty/ref/1.png
Diff not rendered.
Binary file removed tests/group/none/ref/1.png
Diff not rendered.
Binary file removed tests/group/padding/ref/1.png
Diff not rendered.
Binary file modified tests/hobby/ref/1.png
File renamed without changes
File renamed without changes
File renamed without changes.
Binary file added tests/line-fill-rule/ref/1.png
File renamed without changes.
Binary file removed tests/line/fill-rule/ref/1.png
Diff not rendered.
Binary file modified tests/local-anchor/ref/1.png
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
Binary file added tests/mark-position/ref/1.png
File renamed without changes.
Binary file added tests/mark-shape-transform/ref/1.png
File renamed without changes.
File renamed without changes
Binary file added tests/mark-single/ref/1.png
File renamed without changes.
Binary file added tests/mark-z-axis/ref/1.png
File renamed without changes.
Binary file removed tests/mark/custom/ref/1.png
Diff not rendered.
Binary file removed tests/mark/offset/ref/1.png
Diff not rendered.
27 changes: 0 additions & 27 deletions tests/mark/offset/test.typ

This file was deleted.

Binary file removed tests/mark/pos/ref/1.png
Diff not rendered.
Binary file removed tests/mark/shape-transform/ref/1.png
Diff not rendered.
Binary file removed tests/mark/single/ref/1.png
Diff not rendered.
Binary file removed tests/mark/z-axis/ref/1.png
Diff not rendered.
Binary file modified tests/matrix/ref/1.png
Binary file modified tests/merge/ref/1.png
File renamed without changes
File renamed without changes.
Binary file modified tests/padding/ref/1.png
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
Binary file modified tests/polygon/ref/1.png
Binary file modified tests/primitives/ref/1.png
Binary file added tests/projection-default/ref/1.png
File renamed without changes.
File renamed without changes
File renamed without changes.
Binary file removed tests/projection/default/ref/1.png
Diff not rendered.
File renamed without changes
File renamed without changes.
Binary file modified tests/rect/ref/1.png
Binary file modified tests/relative-no-update/ref/1.png
File renamed without changes
File renamed without changes.
Binary file modified tests/ring/ref/1.png
Binary file added tests/root-anchor/ref/1.png
File renamed without changes.
Binary file added tests/rotate-around/ref/1.png
File renamed without changes.
Binary file removed tests/rotation/around/ref/1.png
Diff not rendered.
Binary file modified tests/rotation/ref/1.png
Binary file modified tests/set-get-ctx/ref/1.png
Binary file modified tests/style/ref/1.png
Binary file added tests/transform-precission/ref/1.png
File renamed without changes.
Binary file removed tests/transform/precission/ref/1.png
Diff not rendered.

0 comments on commit b9aac9a

Please sign in to comment.