d2/e2etests
Alexander Wang a7869defa3
fix tests
2024-11-24 13:01:18 -08:00
..
report replace cdr.dev/slog dependency with stdlib slog 2024-10-04 15:58:44 -06:00
testdata fix tests 2024-11-24 13:01:18 -08:00
.gitignore
e2e_test.go replace cdr.dev/slog dependency with stdlib slog 2024-10-04 15:58:44 -06:00
markdowntest.md
measured_test.go Update measured_test.go 2023-06-02 10:57:40 -07:00
NOTICE.txt
patterns_test.go
README.md
regression_test.go add disconnect_direction_right test 2023-12-13 11:05:14 -08:00
root_test.go
stable_test.go fix tests 2024-11-24 13:01:18 -08:00
themes_test.go fix tests 2024-11-24 13:01:18 -08:00
todo_test.go update tests 2023-04-27 14:03:15 -07:00
txtar.txt d2parser: escape backslashes for latex 2024-11-24 12:52:03 -08:00
unicode_test.go

e2etests

e2etests test the end-to-end flow of turning D2 scripts into a rendered diagram

Tests fall under 1 of 3 categories:

  1. Stable. Scripts which produce diagrams that never had issues this major release.
  2. Regressions. Scripts which used to have issues but no longer do. Each one should be linked to the PR which fixed it.
  3. Todos. Scripts which have an issue. If the issue prevents compile, skip: true can be set, otherwise the issue is visual. Each one should be linked to a Github Issue which describes it.

Upon a major release, Regressions are carried over to Stable.

If a change results in test diffs, you can run this script to generate a visual HTML report with the old vs new renders.

go run ./e2etests/report/main.go -delta
open ./e2etests/out/e2e_report.html