mirror of
https://github.com/go-task/task.git
synced 2026-07-01 16:44:34 +00:00
refactor: unify how executor tests are written (#2042)
* feat: use TaskTest for executor tests * feat: more tests * feat: separate tests for executing and formatting with new functional options that work for both test types * feat: formatter tests * refactor: more tests
This commit is contained in:
1
testdata/deps/.gitignore
vendored
1
testdata/deps/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
*.txt
|
||||
24
testdata/deps/Taskfile.yml
vendored
24
testdata/deps/Taskfile.yml
vendored
@@ -7,50 +7,50 @@ tasks:
|
||||
d1:
|
||||
deps: [d11, d12, d13]
|
||||
cmds:
|
||||
- echo 'Text' > d1.txt
|
||||
- echo 'd1'
|
||||
|
||||
d2:
|
||||
deps: [d21, d22, d23]
|
||||
cmds:
|
||||
- echo 'Text' > d2.txt
|
||||
- echo 'd2'
|
||||
|
||||
d3:
|
||||
deps: [d31, d32, d33]
|
||||
cmds:
|
||||
- echo 'Text' > d3.txt
|
||||
- echo 'd3'
|
||||
|
||||
d11:
|
||||
cmds:
|
||||
- echo 'Text' > d11.txt
|
||||
- echo 'd11'
|
||||
|
||||
d12:
|
||||
cmds:
|
||||
- echo 'Text' > d12.txt
|
||||
- echo 'd12'
|
||||
|
||||
d13:
|
||||
cmds:
|
||||
- echo 'Text' > d13.txt
|
||||
- echo 'd13'
|
||||
|
||||
d21:
|
||||
cmds:
|
||||
- echo 'Text' > d21.txt
|
||||
- echo 'd21'
|
||||
|
||||
d22:
|
||||
cmds:
|
||||
- echo 'Text' > d22.txt
|
||||
- echo 'd22'
|
||||
|
||||
d23:
|
||||
cmds:
|
||||
- echo 'Text' > d23.txt
|
||||
- echo 'd23'
|
||||
|
||||
d31:
|
||||
cmds:
|
||||
- echo 'Text' > d31.txt
|
||||
- echo 'd31'
|
||||
|
||||
d32:
|
||||
cmds:
|
||||
- echo 'Text' > d32.txt
|
||||
- echo 'd32'
|
||||
|
||||
d33:
|
||||
cmds:
|
||||
- echo 'Text' > d33.txt
|
||||
- echo 'd33'
|
||||
|
||||
1
testdata/deps/d1.txt
vendored
Normal file
1
testdata/deps/d1.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Text
|
||||
1
testdata/deps/d11.txt
vendored
Normal file
1
testdata/deps/d11.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Text
|
||||
1
testdata/deps/d12.txt
vendored
Normal file
1
testdata/deps/d12.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Text
|
||||
1
testdata/deps/d13.txt
vendored
Normal file
1
testdata/deps/d13.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Text
|
||||
1
testdata/deps/d2.txt
vendored
Normal file
1
testdata/deps/d2.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Text
|
||||
1
testdata/deps/d21.txt
vendored
Normal file
1
testdata/deps/d21.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Text
|
||||
1
testdata/deps/d22.txt
vendored
Normal file
1
testdata/deps/d22.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Text
|
||||
1
testdata/deps/d23.txt
vendored
Normal file
1
testdata/deps/d23.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Text
|
||||
1
testdata/deps/d3.txt
vendored
Normal file
1
testdata/deps/d3.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Text
|
||||
1
testdata/deps/d31.txt
vendored
Normal file
1
testdata/deps/d31.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Text
|
||||
1
testdata/deps/d32.txt
vendored
Normal file
1
testdata/deps/d32.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Text
|
||||
1
testdata/deps/d33.txt
vendored
Normal file
1
testdata/deps/d33.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Text
|
||||
12
testdata/deps/testdata/TestDeps.golden
vendored
Normal file
12
testdata/deps/testdata/TestDeps.golden
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
d1
|
||||
d11
|
||||
d12
|
||||
d13
|
||||
d2
|
||||
d21
|
||||
d22
|
||||
d23
|
||||
d3
|
||||
d31
|
||||
d32
|
||||
d33
|
||||
Reference in New Issue
Block a user