github.com/bilus/oya@v0.0.3-0.20190301162104-da4acbd394c6/features/development.feature (about) 1 Feature: Support for pack development 2 3 Background: 4 Given I'm in project dir 5 6 7 Scenario: Use a local require 8 Given file ./Oyafile containing 9 """ 10 Project: project 11 12 Require: 13 github.com/tooploox/oya-fixtures: v1.0.0 14 15 Replace: 16 github.com/tooploox/oya-fixtures: /tmp/pack 17 18 Import: 19 foo: github.com/tooploox/oya-fixtures 20 """ 21 And file /tmp/pack/Oyafile containing 22 """ 23 Project: pack 24 25 version: echo 1.0.0 26 """ 27 When I run "oya run foo.version" 28 Then the command succeeds 29 And the command outputs to stdout 30 """ 31 1.0.0 32 33 """ 34 And file ./.oya/packs/github.com/tooploox/oya-fixtures@v1.0.0/Oyafile does not exist 35 36 Scenario: With local require oya doesn't attempt to lookup requirements remotely 37 Given file ./Oyafile containing 38 """ 39 Project: project 40 41 Require: 42 github.com/tooploox/does-not-exist: v1.0.0 43 44 Replace: 45 github.com/tooploox/does-not-exist: /tmp/pack 46 47 Import: 48 foo: github.com/tooploox/does-not-exist 49 """ 50 And file /tmp/pack/Oyafile containing 51 """ 52 Project: pack 53 54 version: echo 1.0.0 55 """ 56 When I run "oya run foo.version" 57 Then the command succeeds