[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6856":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":22,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":36,"discoverSource":37},6856,"Nimble","Quick\u002FNimble","Quick","A Matcher Framework for Swift and Objective-C","https:\u002F\u002Fquick.github.io\u002FNimble\u002Fdocumentation\u002Fnimble\u002F",null,"Swift",4841,610,80,20,0,2,61.56,"Apache License 2.0",false,"main",true,[24,25,26,27,28,29,30,31,32],"asynchronous-expectations","bdd","failure-messages","matcher-functions","operator-overloads","swift","swift-assertions","swift-generics","testing","2026-06-12 04:00:30","# Nimble\n\n[![Build Status](https:\u002F\u002Fgithub.com\u002FQuick\u002FNimble\u002Factions\u002Fworkflows\u002Fci-xcode.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FQuick\u002FNimble\u002Factions\u002Fworkflows\u002Fci-xcode.yml)\n[![CocoaPods](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fv\u002FNimble.svg)](https:\u002F\u002Fcocoapods.org\u002Fpods\u002FNimble)\n[![Carthage Compatible](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCarthage-compatible-4BC51D.svg?style=flat)](https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage)\n[![Platforms](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fp\u002FNimble.svg)](https:\u002F\u002Fcocoapods.org\u002Fpods\u002FNimble)\n\nUse Nimble to express the expected outcomes of Swift\nor Objective-C expressions. Inspired by\n[Cedar](https:\u002F\u002Fgithub.com\u002Fpivotal\u002Fcedar).\n\n```swift\n\u002F\u002F Swift\nexpect(1 + 1).to(equal(2))\nexpect(1.2).to(beCloseTo(1.1, within: 0.1))\nexpect(3) > 2\nexpect(\"seahorse\").to(contain(\"sea\"))\nexpect([\"Atlantic\", \"Pacific\"]).toNot(contain(\"Mississippi\"))\nexpect(ocean.isClean).toEventually(beTruthy())\n```\n\n# Documentation\n\nNimble's documentation is now lives in [Sources\u002FNimble\u002FNimble.docc](Sources\u002FNimble\u002FNimble.docc)\nas a Documentation Catalog. You can easily browse it [quick.github.io\u002FNimble](https:\u002F\u002Fquick.github.io\u002FNimble\u002Fdocumentation\u002Fnimble).\n\n# Installing Nimble\n\n> Nimble can be used on its own, or in conjunction with its sister\n  project, [Quick](https:\u002F\u002Fgithub.com\u002FQuick\u002FQuick). To install both\n  Quick and Nimble, follow [the installation instructions in the Quick\n  Documentation](https:\u002F\u002Fgithub.com\u002FQuick\u002FQuick\u002Fblob\u002Fmain\u002FDocumentation\u002Fen-us\u002FInstallingQuick.md).\n\nNimble can currently be installed in one of four ways: Swift Package Manager, \nCocoaPods, Carthage or with git submodules.\n\n## Swift Package Manager\n\n### Xcode\n\nTo install Nimble via Xcode's Swift Package Manager Integration:\nSelect your project configuration, then the project tab, then the Package\nDependencies tab. Click on the \"plus\" button at the bottom of the list,\nthen follow the wizard to add Quick to your project. Specify\n`https:\u002F\u002Fgithub.com\u002FQuick\u002FNimble.git` as the url, and be sure to add\nNimble as a dependency of your unit test target, not your app target.\n\n### Package.Swift\n\nTo use Nimble with Swift Package Manager to test your applications, add Nimble\nto your `Package.Swift` and link it with your test target:\n\n```swift\n\u002F\u002F swift-tools-version:5.7\n\nimport PackageDescription\n\nlet package = Package(\n    name: \"MyAwesomeLibrary\",\n    products: [\n        \u002F\u002F ...\n    ],\n    dependencies: [\n        \u002F\u002F ...\n        .package(url:  \"https:\u002F\u002Fgithub.com\u002FQuick\u002FNimble.git\", from: \"13.0.0\"),\n    ],\n    targets: [\n        \u002F\u002F Targets are the basic building blocks of a package. A target can define a module or a test suite.\n        \u002F\u002F Targets can depend on other targets in this package, and on products in packages this package depends on.\n        .target(\n            name: \"MyAwesomeLibrary\",\n            dependencies: ...),\n        .testTarget(\n            name: \"MyAwesomeLibraryTests\",\n            dependencies: [\"MyAwesomeLibrary\", \"Nimble\"]),\n    ]\n)\n```\n\nPlease note that if you install Nimble using Swift Package Manager, then `raiseException` is not available.\n\n## CocoaPods\n\nTo use Nimble in CocoaPods to test your macOS, iOS, tvOS or watchOS applications, add\nNimble to your podfile and add the ```use_frameworks!``` line to enable Swift\nsupport for CocoaPods.\n\n```ruby\nplatform :ios, '13.0'\n\nsource 'https:\u002F\u002Fgithub.com\u002FCocoaPods\u002FSpecs.git'\n\n# Whatever pods you need for your app go here\n\ntarget 'YOUR_APP_NAME_HERE_Tests', :exclusive => true do\n  use_frameworks!\n  pod 'Nimble'\nend\n```\n\nFinally run `pod install`.\n\n## Carthage\n\nTo use Nimble in Carthage to test your macOS, iOS, tvOS or watchOS applications,\nadd Nimble to your `Cartfile.private`:\n\n```\ngithub \"Quick\u002FNimble\" ~> 13.2\n```\n\nThen follow the rest of the [Carthage Quick Start](https:\u002F\u002Fgithub.com\u002Fcarthage\u002Fcarthage\u002F?tab=readme-ov-file#quick-start)\nand link Nimble with your unit tests.\n\n## Git Submodules\n\nTo use Nimble as a submodule to test your macOS, iOS or tvOS applications, follow\nthese 4 easy steps:\n\n1. Clone the Nimble repository\n2. Add Nimble.xcodeproj to the Xcode workspace for your project\n3. Link Nimble.framework to your test target\n4. Start writing expectations!\n\nFor more detailed instructions on each of these steps,\nread [How to Install Quick](https:\u002F\u002Fgithub.com\u002FQuick\u002FQuick#how-to-install-quick).\nIgnore the steps involving adding Quick to your project in order to\ninstall just Nimble.\n\n# Privacy Statement\n\nNimble is a library that is only used for testing and should never be included\nin the binary submitted to App Store Connect.\n\nDespite not being shipped to Apple, Nimble does not and will never collect any\nkind of analytics or tracking.\n","Nimble是一个为Swift和Objective-C设计的匹配器框架，用于编写清晰且可读性高的测试断言。它支持异步期望、自定义失败信息、丰富的匹配函数以及操作符重载等特性，使得开发者能够以接近自然语言的方式描述预期结果。特别适合于需要进行单元测试或集成测试的iOS\u002FmacOS项目中使用，帮助团队提高代码质量和测试效率。此外，Nimble提供了多种安装方式，包括Swift Package Manager、CocoaPods和Carthage，方便开发者根据自身需求选择最合适的集成方法。","2026-06-11 03:09:13","top_language"]