Swiftpack.co - danwaltin/SwiftSpec as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by danwaltin.
danwaltin/SwiftSpec v3.1.3
A Swift package for BDD/Specification by example à la Gherkin.
⭐️ 1
🕓 3 years ago
.package(url: "https://github.com/danwaltin/SwiftSpec.git", from: "v3.1.3")

SwiftSpec

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

Limitations

Does not (yet) handle

  • Backgound
  • DocStrings

Table of Contents

  1. Setup
  2. Usage

Setup

This section describes setup for using SwiftSpec in an Xcode 11 project.

  1. Download and Compile
  2. Use in the Xcode project

Download and Compile

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

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

swift build

Use in the Xcode project

Add SwiftSpec as a Package Manager dependency in Xcode.

Usage

  1. Write feature files
  2. Generate (or update) 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
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

3 years ago

Fixing an error with table parameters in the generated unit test files

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics