Swiftpack.co - Package - danwaltin/SwiftSpec

SwiftSpec

A Swift package for BDD/Specification by example à la Gherkin.

Table of Contents

  1. Setup
  2. Usage

Setup

This section describes setup for using SwiftSpec in an XCode 8 project.

  1. Download
  2. Compile
  3. Use in the XCode project

Download

Download SwiftSpec, eihter by cloning the repository or by downloading a specific release.

Compile

Compile and archive the framework, either from the SwiftSpec.xcodeproj project, or from command line using

xcodebuild -scheme SwiftSpec archive

Build the command line tool, which is used to generate XCTest files from .feature files, using

swift build

Use in the XCode project

Export the archived framework, SwiftSpec.framework, which is available in the XCode organizer.

In the test target of your project

  1. add a build phase Link Binary With Frameworks, and add the SwiftSpec.framework
  2. add a build phase Copy Files, with destination Frameworks, and add the SwiftSpec.framework

Usage

  1. Write feature files
  2. Generate XCTest test files using the SwiftSpec command line tool, found under .build/debug/SwiftSpecConsole
  3. Add the test files to the XCode project
  4. Write bindings
  5. Implement the code

Github

link
Stars: 1
Help us keep the lights on

Dependencies

Used By

Total: 0