Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when using on mockingbird with Test Plans? #306

Open
2 of 4 tasks
bdruth opened this issue Jun 10, 2022 · 0 comments
Open
2 of 4 tasks

Errors when using on mockingbird with Test Plans? #306

bdruth opened this issue Jun 10, 2022 · 0 comments
Labels
framework bug Breaks tests or user testing code

Comments

@bdruth
Copy link

bdruth commented Jun 10, 2022

New Issue Checklist

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
@bdruth bdruth added the framework bug Breaks tests or user testing code label Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework bug Breaks tests or user testing code
Projects
None yet
Development

No branches or pull requests

1 participant