on main help sign in
chore: add taskfile to easily run tests
commitb759c373d80a9477fc2fc3f9c6e4aeb5712b824d authorAndrey Nering <andreynering@users.noreply.github.com> dateFri 6 Jun 2025, 14:07 (1 year ago) parenta947f59
1 file changed+22
internal/exp/diffview/Taskfile.yaml+22
internal/exp/diffview/Taskfile.yamlnew file+22
@@ -0,0 +1,22 @@
1+version: "3"
2+
3+tasks:
4+ test:
5+ desc: Run tests
6+ cmds:
7+ - go test ./... {{.CLI_ARGS}}
8+
9+ test:update:
10+ desc: Run tests and update golden files
11+ cmds:
12+ - go test ./... -update {{.CLI_ARGS}}
13+
14+ test:print:
15+ desc: Print golden files for debugging
16+ method: none
17+ sources:
18+ - ./testdata/TestDiffView/**/*.golden
19+ cmds:
20+ - for: sources
21+ cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
22+ silent: true