Add basic unit tests for label attribute

This commit is contained in:
Adam Wasila
2020-06-14 11:02:25 +02:00
parent 9f83311931
commit 4bc183a8a1
6 changed files with 122 additions and 0 deletions

6
testdata/label_list/Taskfile.yml vendored Normal file
View File

@@ -0,0 +1,6 @@
version: '3'
tasks:
foo:
label: "foobar"
desc: "task description"

7
testdata/label_status/Taskfile.yml vendored Normal file
View File

@@ -0,0 +1,7 @@
version: '3'
tasks:
foo:
label: "foobar"
status:
- "false"

8
testdata/label_summary/Taskfile.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
version: '3'
tasks:
foo:
label: "foobar"
desc: description
status:
- echo "I'm ok"

7
testdata/label_uptodate/Taskfile.yml vendored Normal file
View File

@@ -0,0 +1,7 @@
version: '3'
tasks:
foo:
label: "foobar"
status:
- echo "I'm ok"

10
testdata/label_var/Taskfile.yml vendored Normal file
View File

@@ -0,0 +1,10 @@
version: '3'
vars:
BAR: baz
tasks:
foo:
label: "foo{{.BAR}}"
status:
- echo "I'm ok"