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
Test errors in Tests+Privacy.swift when running tests on the command line. #2
Comments
Ah ok, this is not a bug. In Xcode I've setup tests to run in You can do this from the command line as well, but I'm guessing you didn't? |
@GeekAndDadDad – btw I came across an old post on your blog and left a comment (the SwiftUI previews one). Feel free to ignore but in case its helpful 👍 |
Ah, I didn't see the .swiftpm (hidden folder) with the xcscheme inside that does this (nice that this works!). |
Alternate method of fixing this issue which allows tests to run in both Release or Debug configurations via a new DEBUG build only configuration variable in LogPrivacy which may be set in tests.
fix #2 via a property settable in tests.
Below is the sample build log and sequence of commands I did on the command line where I see the errors.
The log below is for the build is being done using the fixes in #3 so as to test Xcode 12.5.1 (Swift 5.4.2).
Doing this build in Xcode 12.5.1 by opening the package folder and then running tests works without test failures.
Likewise on main pre-PR-merged-branch, these tests succeed in Xcode 13.0 but fail on the command line.
The text was updated successfully, but these errors were encountered: