typealiased / mockingbird

A Swifty mocking framework for Swift and Objective-C.
https://mockingbirdswift.com
MIT License
657 stars 82 forks source link

Excluding file mechanism not working (on a custom Swift Package) #328

Open Narayane opened 1 year ago

Narayane commented 1 year ago

New Issue Checklist

Overview

Hi,

I tried to ignore a file where I have defined a @convention(block) attribute by following https://mockingbirdswift.com/excluding-files

I created a .mockingbird-ignore file at the root of my custom Swift Package just containing the name of the file but it has no effects.

When I activate verbose mode during mock generation mechanism, I can not see the relative file exclusion log, so I suppose it is why that it is not working

Example

The problematic relative file content

import Foundation

//FIXME: understand why https://mockingbirdswift.com/excluding-files not working

protocol DispatchQueueProtocol { //TODO: @all comment protocol to allow mocks generation

    func async(execute work: @escaping @convention(block) () -> Void)
}

Expected Behavior

Generator does not consider this file (and this issue does not have to occur)

Environment

Svantulden commented 1 year ago

Same problem here!

stidch commented 9 months ago

+1

@Narayane @Svantulden Have you found a workaround for this?

Narayane commented 5 months ago

@andrewchang-bird?