All Projects → Quick → Spry

Quick / Spry

Licence: apache-2.0
A Mac and iOS Playgrounds Unit Testing library based on Nimble.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Spry

Phpspec Code Coverage
Generate Code Coverage reports for PhpSpec tests
Stars: ✭ 59 (-81.5%)
Mutual labels:  bdd, unittest
Colorify
Colorify - simple, yet powerful color library.
Stars: ✭ 106 (-66.77%)
Mutual labels:  ipad, osx
Expekt
BDD assertion library for Kotlin
Stars: ✭ 163 (-48.9%)
Mutual labels:  bdd, unittest
Device
Light weight tool for detecting the current device and screen size written in swift.
Stars: ✭ 1,503 (+371.16%)
Mutual labels:  ipad, osx
Emojiintelligence
Neural Network built in Apple Playground using Swift
Stars: ✭ 1,323 (+314.73%)
Mutual labels:  ipad, playground
jscore-playground
JavaScriptCore example for Swift Playgrounds
Stars: ✭ 17 (-94.67%)
Mutual labels:  playground, ipad
Socket.io Tester
Deprecated: An electron app that lets you connect to a socket.io server and subscribe to a certain topic and/or lets you send socket messages to the server
Stars: ✭ 297 (-6.9%)
Mutual labels:  osx
Vim Anywhere
Use Vim everywhere you've always wanted to
Stars: ✭ 3,295 (+932.92%)
Mutual labels:  osx
Yampa
Functional Reactive Programming domain-specific language embedded in Haskell, for programming efficient hybrid (mixed discrete-time and continuous-time) systems.
Stars: ✭ 294 (-7.84%)
Mutual labels:  ipad
Csv2keychain
Small tool for adding exported credentials from Chrome to macOS keychain
Stars: ✭ 295 (-7.52%)
Mutual labels:  osx
Lest
A modern, C++11-native, single-file header-only, tiny framework for unit-tests, TDD and BDD (includes C++98 variant)
Stars: ✭ 316 (-0.94%)
Mutual labels:  bdd
Termipal
Instant, native micro-GUIs for shell scripts and command line apps
Stars: ✭ 313 (-1.88%)
Mutual labels:  osx
Tpinappreceipt
Reading and Validating In App Purchase Receipt Locally.
Stars: ✭ 305 (-4.39%)
Mutual labels:  osx
Opencore Vanilla Desktop Guide
Host for files for the OpenCore Vanilla Desktop Guide
Stars: ✭ 299 (-6.27%)
Mutual labels:  osx
Macapps
分享个人收集的Mac的App,持续更新中...
Stars: ✭ 311 (-2.51%)
Mutual labels:  osx
Knphotobrowser
📷 图片 || 视频 浏览器(本地和网络) , UIViewController + CollectionView , 完美适配 iPhone 以及 iPad ,屏幕旋转功能 , 适配SDWebImage 5.0
Stars: ✭ 296 (-7.21%)
Mutual labels:  ipad
Splitviewdraganddrop
Drag and drop between your apps in split view mode on iOS 9
Stars: ✭ 315 (-1.25%)
Mutual labels:  ipad
Gank For Mac
💎 The missing Mac OS X application for gank.io (Swift)
Stars: ✭ 295 (-7.52%)
Mutual labels:  osx
Tockler
Application that tracks your time by monitoring your active windows (only titles) and idle time.
Stars: ✭ 301 (-5.64%)
Mutual labels:  osx
Amm
Aria2 Menubar Monitor
Stars: ✭ 312 (-2.19%)
Mutual labels:  osx

Travis Platforms Xcode Playgrounds iPad Playgrounds License

Spry

Spry is a Swift Playgrounds Unit Testing library based on Nimble.

The best thing about Spry is that the API matches Nimble perfectly. Which means once you've created your code and tests in a Playground, you can copy them directly into your Xcode project without needing to (re)write them again :)

Nimble: The code in this library has been copied directly from the Nimble project. However it is currently a stripped down version.

Download

There are a couple of ways you can download Spry.

Template

You can download a Playground including the latest version of Spry. Consider this a boilerplate template. It includes Spry in the Sources folder of the Playground, so you can simply start writing tests alongside your code in the Playground.

iPad Playgrounds
Xcode Playgrounds

Manual

You can also download or checkout this repo and simply copy the files into your existing Playground manually. Simply copy the entire Spry folder into your Playground's Sources folder. Easy Peasy!

Nimble-esque

Spry is a stripped down (Lite) version of Nimble that includes a subset of Nimble's Matchers.

Note: This is a port of Nimble only, since Quick doesn't really make sense in the context of a Playground.

The following features are NOT supported (since they are a part of Quick):

describe
context
it

The following features are already implemented:

  • [x] expect
  • [x] to
  • [x] beAKindOf
  • [x] beAnInstanceOf
  • [x] beCloseTo
  • [x] beEmpty
  • [x] beginWith
  • [x] beGreaterThan
  • [x] beGreaterThanOrEqualTo
  • [x] beIdenticalTo
  • [x] beLessThan
  • [x] beLessThanOrEqualTo
  • [x] beLogical
  • [x] beNil
  • [x] beVoid
  • [x] containElementSatisfying
  • [x] contain
  • [x] endWith
  • [x] equal
  • [x] haveCount
  • [x] match
  • [x] satisfyAnyOf

The following features are not yet implemented:

  • [ ] toEventually
  • [ ] async
  • [ ] matchError
  • [ ] throwError
  • [ ] failWithMessage

Usage

Using Spry is as simple as writing an expect case:

func add<T: ExpressibleByIntegerLiteral>(_ x: T, _ y: T) -> T {
    return x + y
}

// Spry test case
expect(add(4, 5)).to(equal(9))

If you're already familiar with Nimble, then you already know how to use Spry.

For full details on how to write your tests with Spry, I suggest reading over the Nimble docs. Keeping in mind that not all features are currently included.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].