Comments (4)
Confirmed that this is specific to Catalina likely caused by a change in the fnmatch
Darwin API.
from mockingbird.
Thanks for the report! Iβm not seeing this on my end using the .mockingbird-ignore
E2E tests in MockingbirdTestsHost
.
- Where in your project is the ignore file located?
- Can you add the
--verbose
flag to your test target Generate Mockingbird Mocks script phase and post the build logs that start with[DEBUG] Ignoring source path at
?
from mockingbird.
I'm not going to post the whole thing, because it looks like it's just a list of every file. It starts and ends with the following:
nick@faraday ~/workspace/sail/TableSide
:: mockingbird generate --targets 'TableSide' --support 'Test/Unit/Mocks' --outputs 'Test/Unit/Mocks/TableSideMocks.generated.swift' --disable-cache --verbose
[DEBUG] Using inferred Xcode project at /Users/nick/workspace/sail/TableSide/TableSide.xcodeproj
[DEBUG] Parse Xcode Project - Took 32.64 ms
[DEBUG] Ignoring source path at /Users/nick/workspace/sail/TableSide/UI/Tickets/TicketCell.swift
[DEBUG] Ignoring source path at /Users/nick/workspace/sail/TableSide/Model/Transport/SailError.swift
[DEBUG] Ignoring source path at /Users/nick/workspace/sail/TableSide/Model/Transport/Report.swift
[DEBUG] Ignoring source path at /Users/nick/workspace/sail/TableSide/Services/Protocols/Repo.swift
[DEBUG] Ignoring source path at /Users/nick/workspace/sail/TableSide/Model/Cached/Plu.swift
[DEBUG] Ignoring source path at /Users/nick/workspace/sail/TableSide/Extensions/Dictionary+Extensions.swift
[DEBUG] Ignoring source path at /Users/nick/workspace/sail/TableSide/UI/Startup/ServiceSettingsViewController.swift
[DEBUG] Ignoring source path at /Users/nick/workspace/sail/TableSide/Model/Transport/TimeClock.swift
[DEBUG] Ignoring source path at /Users/nick/workspace/sail/TableSide/UI/Components/MainButton.swift
...
[DEBUG] Ignoring source path at /Users/nick/workspace/sail/TableSide/Model/Cached/Charge.swift
[DEBUG] Ignoring source path at /Users/nick/workspace/sail/TableSide/Model/Cached/AutoCharge.swift
[DEBUG] Ignoring source path at /Users/nick/workspace/sail/TableSide/Model/Transport/Split.swift
[DEBUG] Ignoring source path at /Users/nick/workspace/sail/TableSide/Model/Transport/Item.swift
[DEBUG] Extract Sources - Took 16.4 ms
[DEBUG] Found 0 source files and 0 dependency source files for target `TableSide`
[DEBUG] Parse Files - Took 0.03 ms
[DEBUG] Created 0 mockable types
[DEBUG] Process Types - Took 0.04 ms
[DEBUG] Render Mocks - Took 0.21 ms
Generated file to /Users/nick/workspace/sail/TableSide/Test/Unit/Mocks/TableSideMocks.generated.swift
[DEBUG] Write Files - Took 1.56 ms
[DEBUG] Run Program - Took 59.41 ms
from mockingbird.
Hm, still unable to reproduce it in my environment (Mojave), which is also what the CI uses. Itβs possible that the problem is specific to Catalina.
from mockingbird.
Related Issues (20)
- Generator fails to create mock for the simplest PAT
- Missing or confusing documentation HOT 1
- Unable to stub closure in static function HOT 1
- Mocking URLSession with different URL parameters and responses
- Mock generator ignores class-only protocols HOT 3
- Exception on line with given on MacOS 13.2 and XCode 14.2 HOT 3
- Is mockingbird still being maintained?? HOT 2
- Unable to resolve inherited type 'AnyObject' HOT 3
- Mock doesn't work when created in setup method HOT 1
- Mock async and throwing properties
- Excluding file mechanism not working (on a custom Swift Package) HOT 3
- Mockingbird doesn't work out of the box on new projects and Xcode 15 due to sandboxing
- Always getting "Use of protocol 'CaseIterableDefaultsLast' as a type must be written 'any CaseIterableDefaultsLast'" Compiler Error
- Privacy Manifest
- Not generating any mocks results
- 'mock' is unavailable when mocking public protocols from other module HOT 2
- Error using function `any(_:of:)` when closure use generic types
- Supporting Source Files don't allow mocking of external types
- @MainActor protocol generates mock that doesn't compile
- Generated mocks don't work on Xcode Cloud HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mockingbird.