Skip to content

Not generating any mocks results #332

@Boowman

Description

@Boowman

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    generator bugCauses malformed generated code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions