Taskfile.yaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. version: "3"
  2. tasks:
  3. test:
  4. desc: Run tests
  5. cmds:
  6. - go test ./... {{.CLI_ARGS}}
  7. test:update:
  8. desc: Run tests and update golden files
  9. cmds:
  10. - go test ./... -update {{.CLI_ARGS}}
  11. test:print:
  12. desc: Print golden files for debugging
  13. method: none
  14. sources:
  15. - ./testdata/TestDiffView/**/*.golden
  16. cmds:
  17. - for: sources
  18. cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
  19. silent: true
  20. test:print:width:unified:
  21. desc: Print golden files for debugging
  22. method: none
  23. sources:
  24. - ./testdata/TestDiffViewWidth/Unified/*.golden
  25. cmds:
  26. - for: sources
  27. cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
  28. silent: true
  29. test:print:width:split:
  30. desc: Print golden files for debugging
  31. method: none
  32. sources:
  33. - ./testdata/TestDiffViewWidth/Split/*.golden
  34. cmds:
  35. - for: sources
  36. cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
  37. silent: true
  38. test:print:height:unified:
  39. desc: Print golden files for debugging
  40. method: none
  41. sources:
  42. - ./testdata/TestDiffViewHeight/Unified/*.golden
  43. cmds:
  44. - for: sources
  45. cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
  46. silent: true
  47. test:print:height:split:
  48. desc: Print golden files for debugging
  49. method: none
  50. sources:
  51. - ./testdata/TestDiffViewHeight/Split/*.golden
  52. cmds:
  53. - for: sources
  54. cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
  55. silent: true
  56. test:print:xoffset:unified:
  57. desc: Print golden files for debugging
  58. method: none
  59. sources:
  60. - ./testdata/TestDiffViewXOffset/Unified/*.golden
  61. cmds:
  62. - for: sources
  63. cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
  64. silent: true
  65. test:print:xoffset:split:
  66. desc: Print golden files for debugging
  67. method: none
  68. sources:
  69. - ./testdata/TestDiffViewXOffset/Split/*.golden
  70. cmds:
  71. - for: sources
  72. cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
  73. silent: true
  74. test:print:yoffset:unified:
  75. desc: Print golden files for debugging
  76. method: none
  77. sources:
  78. - ./testdata/TestDiffViewYOffset/Unified/*.golden
  79. cmds:
  80. - for: sources
  81. cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
  82. silent: true
  83. test:print:yoffset:split:
  84. desc: Print golden files for debugging
  85. method: none
  86. sources:
  87. - ./testdata/TestDiffViewYOffset/Split/*.golden
  88. cmds:
  89. - for: sources
  90. cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
  91. silent: true
  92. test:print:yoffset:unified:infinite:
  93. desc: Print golden files for debugging
  94. method: none
  95. sources:
  96. - ./testdata/TestDiffViewYOffsetInfinite/Unified/*.golden
  97. cmds:
  98. - for: sources
  99. cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
  100. silent: true
  101. test:print:yoffset:split:infinite:
  102. desc: Print golden files for debugging
  103. method: none
  104. sources:
  105. - ./testdata/TestDiffViewYOffsetInfinite/Split/*.golden
  106. cmds:
  107. - for: sources
  108. cmd: echo && echo "------- {{.ITEM}} -------" && echo && cat {{.ITEM}}
  109. silent: true