d2/e2etests
Alexander Wang dbac4b8cdf
dagre
2023-02-09 19:29:30 -08:00
..
report e2etests: Update report template 2023-02-02 11:31:46 -08:00
testdata dagre 2023-02-09 19:29:30 -08:00
.gitignore oss 2022-11-03 06:54:49 -07:00
e2e_test.go add experr 2023-02-07 20:47:12 -08:00
markdowntest.md oss 2022-11-03 06:54:49 -07:00
measured_test.go fix empty labels with class & sql_tables w/ premeasured texts 2023-01-24 14:52:15 -08:00
NOTICE.txt oss 2022-11-03 06:54:49 -07:00
README.md d2ir: Review fixes #714 2023-01-27 23:45:04 -08:00
regression_test.go Merge pull request #762 from alixander/sequence-panic-2 2023-02-07 20:54:09 -08:00
stable_test.go fix for class 2023-02-06 00:47:13 -08:00
todo_test.go move erroring test to todo test 2023-02-02 20:44:27 -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 -delta
open ./e2etests/out/e2e_report.html