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/*.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/*.golden
 39    cmds:
 40      - for: sources
 41        cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
 42    silent: true
 43
 44  test:print:height:unified:
 45    desc: Print golden files for debugging
 46    method: none
 47    sources:
 48      - ./testdata/TestDiffViewHeight/Unified/*.golden
 49    cmds:
 50      - for: sources
 51        cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
 52    silent: true
 53
 54  test:print:height:split:
 55    desc: Print golden files for debugging
 56    method: none
 57    sources:
 58      - ./testdata/TestDiffViewHeight/Split/*.golden
 59    cmds:
 60      - for: sources
 61        cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
 62    silent: true
 63
 64  test:print:xoffset:unified:
 65    desc: Print golden files for debugging
 66    method: none
 67    sources:
 68      - ./testdata/TestDiffViewXOffset/Unified/*.golden
 69    cmds:
 70      - for: sources
 71        cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
 72    silent: true
 73
 74  test:print:xoffset:split:
 75    desc: Print golden files for debugging
 76    method: none
 77    sources:
 78      - ./testdata/TestDiffViewXOffset/Split/*.golden
 79    cmds:
 80      - for: sources
 81        cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
 82    silent: true
 83
 84  test:print:yoffset:unified:
 85    desc: Print golden files for debugging
 86    method: none
 87    sources:
 88      - ./testdata/TestDiffViewYOffset/Unified/*.golden
 89    cmds:
 90      - for: sources
 91        cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
 92    silent: true
 93
 94  test:print:yoffset:split:
 95    desc: Print golden files for debugging
 96    method: none
 97    sources:
 98      - ./testdata/TestDiffViewYOffset/Split/*.golden
 99    cmds:
100      - for: sources
101        cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
102    silent: true
103
104  test:print:yoffset:unified:infinite:
105    desc: Print golden files for debugging
106    method: none
107    sources:
108      - ./testdata/TestDiffViewYOffsetInfinite/Unified/*.golden
109    cmds:
110      - for: sources
111        cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
112    silent: true
113
114  test:print:yoffset:split:infinite:
115    desc: Print golden files for debugging
116    method: none
117    sources:
118      - ./testdata/TestDiffViewYOffsetInfinite/Split/*.golden
119    cmds:
120      - for: sources
121        cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
122    silent: true