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

@@ -0,0 +1,6 @@
task: [foo] echo "foo"
foo
task: [bar] echo "bar"
bar
task: [included:qux] echo "qux"
qux

View File

@@ -0,0 +1,11 @@
task: foo
(task does not have description or summary)
aliases:
- f
- x
commands:
- echo "foo"
- Task: b

View File

@@ -0,0 +1 @@
task: Found multiple tasks (foo, bar) that match "x"