demo-swift-quick-nimble
Demo Swift Quick Nimble
https://github.com/joelparkerhenderson/demo-swift-quick-nimble
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.9%) to scientific vocabulary
Repository
Demo Swift Quick Nimble
Basic Info
- Host: GitHub
- Owner: joelparkerhenderson
- Language: Swift
- Default Branch: master
- Size: 12.1 MB
Statistics
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Demo Swift Quick Nimble

This demonstration shows:
We use Quick and Nimble for Test Driven Development (TDD)
Quick and Nimble are inspired by RSpec, Specta, and Ginkgo.
This README describes how to create the demo.
Start
To use this demo, you can clone this repo, or you can use this README to create your own project.
If you clone this repo, then be aware that there are multiple git branches, so pick the one you want.
swift-4-xcode-9: Swift version 4, Xcode version 9, iOS version 11.
swift-3-xcode-8: Swift version 3, Xcode version 8, iOS version 10.
Create the project
Launch Xcode and create a new project.
Use iOS template "Single View Application" and Product Name "Demo Swift Quick Nimble".
Add Quick and Nimble. We suggest using Carthage or Cocoapods.
Carthage Cartfile.private:
github "Quick/Quick" github "Quick/Nimble"
The Carthage setup has two areas that are specific to testing.
In the center area of Xcode, near the top, there is a select box that lets you change the target.
The default target says "Demo Swift Quick Nimble" because this is the typical app.
Change the target to say "Demo Swift Quick NimbleTests" because this is the test target.
Choose the test target
Build Phasestab.Edit the section
Link Binary With Libraries, and add the Quick framework and Nimble framework.Add a
Run Phaseusing typical Carthage settings.
Create a test
The project automatically creates two test folders and files.
shell
Demo Swift Quick NimbleTests/Demo Swift Quick NimbleTests.swift
Demo Swift Quick NimbleUITests/Demo Swift Quick NimbleUITests.swift
Edit Demo Swift Quick NimbleTests.swift.
Delete all the existing code because it is for XCTest, not Quick and Nimble.
Add this code:
```swift import Quick import Nimble
class DemoSpec: QuickSpec { override func spec() { describe("Demo") { it("runs") { expect(true).to(beTruthy()) } } } } ```
Run
To run the test, choose the menu Product → Test.
The simulator launches.
The Xcode status changes to "Testing...".
You see a popup that says "Test Succeeded".
If you use the editor to view the file "Demo Swift Quick NimbleTests.swift", then you see a green diamond check box, which confirms the test ran and succeeded.
If you get the error "No such module 'Quick'" then you may need to delete derived data.
To delete derived data by using the command line:
shell rm -rf ~/Library/Developer/Xcode/DerivedDataTo delete derived data by using the Xcode GUI: Window → Projects → See the "Derived Data" line → click the button "Delete..."
Tracking
- Package: demoswiftquick_nimble
- Version: 3.0.0
- Created: 2016-04-09
- Updated: 2017-09-22
- License: BSD, GPL, MIT
- Contact: Joel Parker Henderson (joel@joelparkerhenderson.com)
Owner
- Name: Joel Parker Henderson
- Login: joelparkerhenderson
- Kind: user
- Location: California
- Website: http://www.joelparkerhenderson.com
- Repositories: 319
- Profile: https://github.com/joelparkerhenderson
Software developer. Technology consultant. Creator of GitAlias.com, NumCommand.com, SixArm.com, and many open source projects.
Citation (CITATION.cff)
cff-version: 1.2.0
title: Demo Swift Quick Nimble
message: >-
If you use this work and you want to cite it,
then you can use the metadata from this file.
type: software
authors:
- given-names: Joel Parker
family-names: Henderson
email: joel@joelparkerhenderson.com
affiliation: joelparkerhenderson.com
orcid: 'https://orcid.org/0009-0000-4681-282X'
identifiers:
- type: url
value: 'https://github.com/joelparkerhenderson/demo-swift-quick-nimble/'
description: Demo Swift Quick Nimble
repository-code: 'https://github.com/joelparkerhenderson/demo-swift-quick-nimble/'
abstract: >-
Demo Swift Quick Nimble
license: See license file
GitHub Events
Total
- Push event: 1
Last Year
- Push event: 1
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Joel Parker Henderson | j****l@j****m | 7 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0