A pure Swift BDD-style testing framework independent of XCTest and NSObject.
Sleipnir is a BDD-style testing framework for Swift that allows developers to write expressive, readable tests using a syntax inspired by Cedar. It solves the problem of needing a pure Swift testing solution that doesn't rely on XCTest or NSObject, providing more control and flexibility in test structure and execution.
Swift developers, particularly those working on iOS or macOS projects, who prefer BDD-style testing and want a framework independent of Apple's XCTest.
Developers choose Sleipnir for its clean syntax, pure Swift implementation, and features like seeded random test runs, shared examples, and custom reporters, which offer more flexibility than XCTest.
BDD-style framework for Swift
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Built entirely in Swift without dependencies on NSObject or XCTest, offering a native and modern testing experience free from Objective-C legacy.
Uses describe, context, and it blocks inspired by Cedar, making test suites highly readable and well-structured for behavior-driven development.
Supports seeded random test order execution, allowing developers to replay test runs in the same order for debugging flaky tests, as shown in the README's Runner.run(seed:) example.
Enables reusable test suites across different contexts via sharedExamplesFor, reducing code duplication and improving maintainability.
Asynchronous matchers are listed as TODO in the README, limiting the framework's ability to test modern Swift concurrency patterns like async/await.
Requires manual setup or experimental CocoaPods integration, with the README noting that the CocoaPods build doesn't work on iPhone Simulator, adding setup overhead.
As a third-party framework, it lacks the extensive plugins, community resources, and tool integrations available for XCTest, potentially increasing maintenance effort.