TestGitignoreIncludedOverride checks that an explicit use_gitignore: false in an included Taskfile is preserved even when the root Taskfile sets it to true.
(t *testing.T)
| 776 | // TestGitignoreIncludedOverride checks that an explicit use_gitignore: false in |
| 777 | // an included Taskfile is preserved even when the root Taskfile sets it to true. |
| 778 | func TestGitignoreIncludedOverride(t *testing.T) { //nolint:paralleltest // mutates fixture files |
| 779 | gitignoreSeq{ |
| 780 | dir: "testdata/gitignore_included_override", |
| 781 | task: "included:build", |
| 782 | create: map[string]string{"ignored.txt": "ignored\n"}, |
| 783 | steps: []gitignoreStep{ |
| 784 | {run: "first run"}, |
| 785 | {run: "up to date"}, |
| 786 | {run: "ignored file modified", write: map[string]string{"ignored.txt": "ignored modified\n"}}, |
| 787 | }, |
| 788 | }.run(t) |
| 789 | } |
| 790 | |
| 791 | func TestGitignoreTaskListFallback(t *testing.T) { //nolint:paralleltest // shares testdata/gitignore with TestGitignoreChecksum |
| 792 | const dir = "testdata/gitignore" |
nothing calls this directly
no test coverage detected
searching dependent graphs…