mirror of
https://github.com/go-task/task.git
synced 2025-11-23 22:24:45 +02: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:
0
testdata/precondition/testdata/TestPrecondition-a_precondition_has_been_met.golden
vendored
Normal file
0
testdata/precondition/testdata/TestPrecondition-a_precondition_has_been_met.golden
vendored
Normal file
1
testdata/precondition/testdata/TestPrecondition-a_precondition_was_not_met-err-run.golden
vendored
Normal file
1
testdata/precondition/testdata/TestPrecondition-a_precondition_was_not_met-err-run.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
task: precondition not met
|
||||
1
testdata/precondition/testdata/TestPrecondition-a_precondition_was_not_met.golden
vendored
Normal file
1
testdata/precondition/testdata/TestPrecondition-a_precondition_was_not_met.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
task: 1 != 0 obviously!
|
||||
@@ -0,0 +1 @@
|
||||
task: Failed to run task "executes_failing_task_as_cmd": task: precondition not met
|
||||
1
testdata/precondition/testdata/TestPrecondition-precondition_in_cmd_fails_the_task.golden
vendored
Normal file
1
testdata/precondition/testdata/TestPrecondition-precondition_in_cmd_fails_the_task.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
task: 1 != 0 obviously!
|
||||
@@ -0,0 +1 @@
|
||||
task: precondition not met
|
||||
@@ -0,0 +1 @@
|
||||
task: 1 != 0 obviously!
|
||||
Reference in New Issue
Block a user