d2/e2etests
ejulio-ts cb414e5382
Merge pull request #397 from ejulio-ts/gh-391-spans
sequence_diagram: Fix span size
2022-12-07 09:48:04 -08:00
..
report update names in report 2022-11-23 20:30:48 -08:00
testdata Merge pull request #397 from ejulio-ts/gh-391-spans 2022-12-07 09:48:04 -08:00
.gitignore oss 2022-11-03 06:54:49 -07:00
e2e_test.go fix empty file 2022-12-05 09:48:38 -08:00
markdowntest.md oss 2022-11-03 06:54:49 -07:00
NOTICE.txt oss 2022-11-03 06:54:49 -07:00
README.md oss 2022-11-03 06:54:49 -07:00
regression_test.go Fix span size 2022-12-06 14:19:50 -08:00
stable_test.go fix sequence distancing 2022-12-05 22:45:11 -08:00
todo_test.go save 2022-12-05 19:50:08 -08:00

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
open ./e2etests/out/e2e_report.html