https://github.com/feather-framework/feather-spec
https://github.com/feather-framework/feather-spec
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/feather-framework/feather-spec
- Owner: feather-framework
- License: mit
- Created: 2023-11-24T15:24:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-23T08:22:34.000Z (about 2 years ago)
- Last Synced: 2024-05-23T08:31:25.916Z (about 2 years ago)
- Language: Swift
- Homepage: https://feather-framework.github.io/feather-spec/documentation/featherspec/
- Size: 350 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Feather Spec
The `FeatherSpec` library provides a declarative unit testing tool.
## Getting started
⚠️ This repository is a work in progress, things can break until it reaches v1.0.0.
Use at your own risk.
### Adding the dependency
To add a dependency on the package, declare it in your `Package.swift`:
```swift
.package(url: "https://github.com/feather-framework/feather-spec", .upToNextMinor(from: "0.3.1")),
```
and to your application target, add `FeatherSpec` to your dependencies:
```swift
.product(name: "FeatherSpec", package: "feather-spec")
```
Example `Package.swift` file with `FeatherSpec` as a dependency:
```swift
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "my-application",
dependencies: [
.package(url: "https://github.com/feather-framework/feather-spec", .upToNextMinor(from: "0.3.1")),
],
targets: [
.target(name: "MyApplication", dependencies: [
.product(name: "FeatherSpec", package: "feather-spec")
]),
.testTarget(name: "MyApplicationTests", dependencies: [
.target(name: "MyApplication"),
]),
]
)
```
### Using FeatherSpec
See the `FeatherSpecTests` target for a basic Spec implementations.
See developer documentation here:
[Documentation](https://feather-framework.github.io/feather-spec/documentation/featherspec)