github.com/tooploox/oya@v0.0.21-0.20230524103240-1cda1861aad6/features/changeset.feature (about) 1 Feature: Changesets 2 3 Background: 4 Given I'm in project dir 5 6 Scenario: No changes 7 Given file ./Oyafile containing 8 """ 9 Project: project 10 Changeset: echo "" 11 all: | 12 echo "Root" 13 """ 14 And file ./project1/Oyafile containing 15 """ 16 Changeset: echo "" 17 all: | 18 echo "Project1" 19 """ 20 When I run "oya run --changeset --recurse all" 21 Then the command succeeds 22 And the command outputs 23 """ 24 """ 25 26 Scenario: Child marks itself as changed 27 Given file ./Oyafile containing 28 """ 29 Project: project 30 Changeset: echo "" 31 all: | 32 echo "Root" 33 """ 34 And file ./project1/Oyafile containing 35 """ 36 Changeset: echo "+." 37 all: | 38 echo "Root" 39 """ 40 When I run "oya run --changeset --recurse all" 41 Then the command succeeds 42 And the command outputs 43 """ 44 Root 45 46 """ 47 48 Scenario: Child marks parent as changed 49 Given file ./Oyafile containing 50 """ 51 Project: project 52 Changeset: echo "" 53 all: | 54 echo "Root" 55 """ 56 And file ./project1/Oyafile containing 57 """ 58 Changeset: echo "+../" 59 all: | 60 echo "Root" 61 """ 62 When I run "oya run --changeset --recurse all" 63 Then the command succeeds 64 And the command outputs 65 """ 66 Root 67 68 """ 69 70 Scenario: Parent marks child as changed 71 Given file ./Oyafile containing 72 """ 73 Project: project 74 Changeset: echo "+project1/" 75 all: | 76 echo "Root" 77 """ 78 And file ./project1/Oyafile containing 79 """ 80 Changeset: echo "" 81 all: | 82 echo "Project1" 83 """ 84 When I run "oya run --changeset --recurse all" 85 Then the command succeeds 86 And the command outputs 87 """ 88 Project1 89 90 """