mirror of
https://github.com/go-task/task.git
synced 2026-06-22 20:25:50 +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:
6
testdata/alias/testdata/TestAlias-alias.golden
vendored
Normal file
6
testdata/alias/testdata/TestAlias-alias.golden
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
task: [foo] echo "foo"
|
||||
foo
|
||||
task: [bar] echo "bar"
|
||||
bar
|
||||
task: [included:qux] echo "qux"
|
||||
qux
|
||||
11
testdata/alias/testdata/TestAlias-alias_summary.golden
vendored
Normal file
11
testdata/alias/testdata/TestAlias-alias_summary.golden
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
task: foo
|
||||
|
||||
(task does not have description or summary)
|
||||
|
||||
aliases:
|
||||
- f
|
||||
- x
|
||||
|
||||
commands:
|
||||
- echo "foo"
|
||||
- Task: b
|
||||
1
testdata/alias/testdata/TestAlias-duplicate_alias-err-run.golden
vendored
Normal file
1
testdata/alias/testdata/TestAlias-duplicate_alias-err-run.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
task: Found multiple tasks (foo, bar) that match "x"
|
||||
0
testdata/alias/testdata/TestAlias-duplicate_alias.golden
vendored
Normal file
0
testdata/alias/testdata/TestAlias-duplicate_alias.golden
vendored
Normal file
Reference in New Issue
Block a user