-
Notifications
You must be signed in to change notification settings - Fork 3
/
ignore.feature
67 lines (60 loc) · 1.12 KB
/
ignore.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Feature: .oyaignore
Background:
Given I'm in project dir
Scenario: Empty .oyaignore
Given file ./Oyafile containing
"""
Project: project
all: echo "main"
"""
And file ./oya/subdir/Oyafile containing
"""
all: echo "subdir"
"""
When I run "oya run --recurse all"
Then the command succeeds
And the command outputs
"""
main
subdir
"""
Scenario: Ignore file
Given file ./Oyafile containing
"""
Project: project
Ignore:
- subdir/Oyafile
all: echo "main"
"""
And file ./subdir/Oyafile containing
"""
all: echo "subdir"
"""
When I run "oya run --recurse all"
Then the command succeeds
And the command outputs
"""
main
"""
Scenario: Wildcard ignore
Given file ./Oyafile containing
"""
Project: project
Ignore:
- subdir/*
all: echo "main"
"""
And file ./subdir/Oyafile containing
"""
all: echo "subdir"
"""
And file ./subdir/foo/Oyafile containing
"""
all: echo "subdir/foo"
"""
When I run "oya run --recurse all"
Then the command succeeds
And the command outputs
"""
main
"""