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

Not generating any mocks results #332

Open
Boowman opened this issue Feb 2, 2024 · 0 comments
Open

Not generating any mocks results #332

Boowman opened this issue Feb 2, 2024 · 0 comments
Labels
generator bug Causes malformed generated code

Comments

@Boowman
Copy link

Boowman commented Feb 2, 2024

Overview

I tried it in a brand-new project and it works just fine, I then tried to add it to my current project, and whenever I try to run it I am getting the following errors, the first one comes from the generated file itself @testable import Mockingbird

Screenshot 2024-02-02 at 15 47 23

The generated file is being created but when calling mock(...) it doesn't get populated anymore. The file only contains the includes and nothing else.

Example

import Mockingbird

var testing = mock(TestingProtocol.self)

As I said, it works in a new project but not in this one, not sure if maybe it's some settings that I need to change.

Environment

  • Mockingbird CLI version (0.20.0)
  • Xcode and Swift version (15.2 & 5.9.2)
  • Package manager (SPM package)
  • Unit testing framework (XCTest)
@Boowman Boowman added the generator bug Causes malformed generated code label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generator bug Causes malformed generated code
Projects
None yet
Development

No branches or pull requests

1 participant