mockingbird
mockingbird copied to clipboard
Errors when using on mockingbird with Test Plans?
New Issue Checklist
- [x] I updated the framework and generator to the latest version
- [x] I searched the existing GitHub issues and list of common problems
Overview
I ran through the instructions to setup mockingbird with my Xcode project using the SPM instructions - seemed to go fine, no errors, however, trying to use mockingbird and I just get errors around modules not being found, including for mockingbird itself (from the generated code) and I can't sort out what's going on. I'm wondering if it has to do with having used the "Convert Scheme to use Test Plans" that I did before setting up mockingbird. I'm also using Quick + Nimble.
Example
import Quick
import Nimble
import AWSCloudWatchLogs
import ClientRuntime
import AWSClientRuntime
class CloudWatchLogPublisherGatewaySpec: QuickSpec {
override func spec() {
describe("CloudWatchLogPublisherGateway") {
it("should pass") {
let mockClient = mock(CloudWatchLogsClient.self).initialize(region: "us-east-1")
}
}
}
}
Expected Behavior
With this, I get module errors on various internal AWS modules not found. If I comment out the mock(...) call I get an error on the mockingbird module not found.
Environment
- Mockingbird CLI version (
mockingbird version)0.20.0 - Xcode and Swift version (
swift --version)-
swift-driver version: 1.45.2 Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12) - Xcode
Version 13.4.1 (13F100)
-
- Package manager (CocoaPods, Carthage, SPM project, SPM package) SPM project
- Unit testing framework (XCTest, Quick/Nimble) Quick/Nimble
- Custom configuration
- [ ] Mockingbird ignore files
- [ ] Supporting source files