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:
Pete Davison
2025-03-31 17:53:58 +01:00
committed by GitHub
parent 180fcef364
commit 4736bc2734
175 changed files with 1706 additions and 1111 deletions

View File

@@ -1 +0,0 @@
*.txt

View File

@@ -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
View File

@@ -0,0 +1 @@
Text

1
testdata/deps/d11.txt vendored Normal file
View File

@@ -0,0 +1 @@
Text

1
testdata/deps/d12.txt vendored Normal file
View File

@@ -0,0 +1 @@
Text

1
testdata/deps/d13.txt vendored Normal file
View File

@@ -0,0 +1 @@
Text

1
testdata/deps/d2.txt vendored Normal file
View File

@@ -0,0 +1 @@
Text

1
testdata/deps/d21.txt vendored Normal file
View File

@@ -0,0 +1 @@
Text

1
testdata/deps/d22.txt vendored Normal file
View File

@@ -0,0 +1 @@
Text

1
testdata/deps/d23.txt vendored Normal file
View File

@@ -0,0 +1 @@
Text

1
testdata/deps/d3.txt vendored Normal file
View File

@@ -0,0 +1 @@
Text

1
testdata/deps/d31.txt vendored Normal file
View File

@@ -0,0 +1 @@
Text

1
testdata/deps/d32.txt vendored Normal file
View File

@@ -0,0 +1 @@
Text

1
testdata/deps/d33.txt vendored Normal file
View File

@@ -0,0 +1 @@
Text

12
testdata/deps/testdata/TestDeps.golden vendored Normal file
View File

@@ -0,0 +1,12 @@
d1
d11
d12
d13
d2
d21
d22
d23
d3
d31
d32
d33