From b759c373d80a9477fc2fc3f9c6e4aeb5712b824d Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Fri, 6 Jun 2025 14:07:55 -0300 Subject: [PATCH] chore: add taskfile to easily run tests --- internal/exp/diffview/Taskfile.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 internal/exp/diffview/Taskfile.yaml diff --git a/internal/exp/diffview/Taskfile.yaml b/internal/exp/diffview/Taskfile.yaml new file mode 100644 index 0000000000000000000000000000000000000000..33083d02f7686f3792e27aed0f2ed83d039e9a42 --- /dev/null +++ b/internal/exp/diffview/Taskfile.yaml @@ -0,0 +1,22 @@ +version: "3" + +tasks: + test: + desc: Run tests + cmds: + - go test ./... {{.CLI_ARGS}} + + test:update: + desc: Run tests and update golden files + cmds: + - go test ./... -update {{.CLI_ARGS}} + + test:print: + desc: Print golden files for debugging + method: none + sources: + - ./testdata/TestDiffView/**/*.golden + cmds: + - for: sources + cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}} + silent: true