1version: "3"
2
3tasks:
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
23
24 test:print:width:unified:
25 desc: Print golden files for debugging
26 method: none
27 sources:
28 - ./testdata/TestDiffViewWidth/Unified/LightMode/*.golden
29 cmds:
30 - for: sources
31 cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
32 silent: true
33
34 test:print:width:split:
35 desc: Print golden files for debugging
36 method: none
37 sources:
38 - ./testdata/TestDiffViewWidth/Split/LightMode/*.golden
39 cmds:
40 - for: sources
41 cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
42 silent: true