github.com/tooploox/oya@v0.0.21-0.20230524103240-1cda1861aad6/features/init.feature (about)

     1  Feature: Initialization
     2  
     3  Background:
     4     Given I'm in project dir
     5  
     6  Scenario: Init a project
     7    When I run "oya init OyaExample"
     8    Then the command succeeds
     9    And file ./Oyafile exists
    10  
    11  Scenario: Init a existing project
    12    When I run "oya init OyaExample"
    13    And I run "oya init OyaExample2"
    14    Then the command fails with error matching
    15    """
    16    .*already an Oya project.*
    17    """
    18  
    19  Scenario: Init a project name
    20    When I run "oya init OyaExample"
    21    Then the command succeeds
    22    And file ./Oyafile contains
    23      """
    24      Project: OyaExample
    25  
    26      """