mockingbird
mockingbird copied to clipboard
Unable to use the `.mockingbird-ignore` file to blacklist all files and whitelist specific files that are more than 1 folder deep
New Issue Checklist
- [X] I updated my Mockingbird framework and CLI to the latest version
- [X] I searched for existing GitHub issues
Description
When using the .mockingbird-ignore
file I'm unable to include files by using the !
that are more than 1 folder deep in my project when I've blacklisted all files.
I have a .mockingbird-ignore
file that I want to use by blacklisting all files and only whitelisting the ones that I want to Mock. Below I've outlined the file to show which statements work and which do not. Not sure if this is a known limitation?
If I remove all lines from the .mockingbird-ignore
then it properly parses the files that are more than 1 folder deep so I can confirm that it generates the mocks on the files that are being whitelisted below when there are no files listed in the .mockingbird-ignore
# Blacklist all files/folders
*
# Whitelist some files
# works
!File1.swift
!File2.swift
!folder1/File3.swift
!folder1/*.swift
# Doesn't work
!folder1/folder2/File4.swift
!folder1/folder3/*.swift
Environment
-
Mockingbird CLI version (
mockingbird version
) 0.16.0 -
Xcode and macOS version (are you running a beta?) MacOS Catalina 10.15.7 Xcode 12.2
-
Swift version (
swift --version
) Apple Swift version 5.3.1 (wiftlang-1200.0.41 clang-1200.0.32.8) Target: x86_64-apple-darwin19.6.0 -
Installation method (CocoaPods, Carthage, from source, etc) Cocoapods
-
Unit testing framework (XCTest, Quick + Nimble, etc) Quick + Nimble
-
Does your project use
.mockingbird-ignore
? Yes -
Are you using supporting source files? No