Sha256: ee9952ceabfba004ea7dea65c848e20002ced03d3d3bc2f3b7758e5d7a60c9d5

Contents?: true

Size: 1.82 KB

Versions: 31

Compression:

Stored size: 1.82 KB

Contents

Feature: Create new project
  As a lead developer
  I want to use fwt to create a new Xcode project
  So that the structure of the project is compliant with FW's standards

  Background: 
    Given a configured installation of FWToolkit for "Tom the Dev" working for "Awesome Company"

  @xcode
  Scenario: Create a new project
    When I successfully run `fwt xcode new MyProject AAA`
    Then I cd to "MyProject"
    And the following directories should exist:
      | MyProject.xcworkspace |
      | MyProject/MyProject.xcodeproj |
      | MyProject/MyProject/Supporting Files/Settings.bundle |
      | MyProject/Myproject/Supporting Files/en.lproj |
      | MyProject/MyprojectTests/Supporting Files/en.lproj |
    And the following files should exist:
      | MyProject/MyProject/AAAAppDelegate.h |
      | MyProject/MyProject/AAAAppDelegate.m |
      | MyProject/MyProject/Supporting Files/MyProject-Info.plist |
      | MyProject/MyProject/Supporting Files/MyProject-Prefix.pch |
      | MyProject/MyProject/Supporting Files/fw-shared.xcconfig |
      | MyProject/MyProject/Supporting Files/main.m |
      | MyProject/MyProject/Supporting Files/version.sh |
      | MyProject/MyProjectTests/Supporting Files/MyProjectTests-Info.plist |
      | MyProject/MyProjectTests/MyProjectTests.h |
      | MyProject/MyProjectTests/MyProjectTests.m |
      | MyProject/Resources/Default.png |
      | MyProject/Resources/Default@2x.png |
      | MyProject/Resources/Default-568h@2x.png |
    And I successfully run `xcodebuild -scheme MyProject -workspace MyProject.xcworkspace -sdk iphonesimulator6.0`

  @xcode
  Scenario: Fails to create a new project is the project dir is not empty
    Given a directory named "MyProject"
    When I run `fwt xcode new MyProject AAA`
    Then the stderr should contain:
    """
    Can't create the project. The directory
    """

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
fwtoolkit-2.3.2 features/xcode/create.feature
fwtoolkit-2.3.1 features/xcode/create.feature
fwtoolkit-2.3.0 features/xcode/create.feature
fwtoolkit-2.2.4 features/xcode/create.feature
fwtoolkit-2.2.3 features/xcode/create.feature
fwtoolkit-2.2.2 features/xcode/create.feature
fwtoolkit-2.2.1 features/xcode/create.feature
fwtoolkit-2.2.0 features/xcode/create.feature
fwtoolkit-2.1.10 features/xcode/create.feature
fwtoolkit-2.1.9 features/xcode/create.feature
fwtoolkit-2.1.8 features/xcode/create.feature
fwtoolkit-2.1.7 features/xcode/create.feature
fwtoolkit-2.1.6 features/xcode/create.feature
fwtoolkit-2.1.5 features/xcode/create.feature
fwtoolkit-2.1.4 features/xcode/create.feature
fwtoolkit-2.1.3 features/xcode/create.feature
fwtoolkit-2.1.1 features/xcode/create.feature
fwtoolkit-2.0.7 features/xcode/create.feature
fwtoolkit-2.0.6 features/xcode/create.feature
fwtoolkit-2.0.5 features/xcode/create.feature