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
The file "Test.swift" doesn’t exist #151
Comments
Hi @Hoppus, thanks for the report! We haven't heard of anyone hitting this issue. Can you provide step-by-step instructions on how to reproduce the failure and/or attach a sample project exhibiting the issue? |
@stephencelis
Podfile:
|
@Hoppus I think you want to set your Podfile up for your app target as a whole. Can you change your Podfile to the following? platform :ios, '12'
inhibit_all_warnings!
use_frameworks!
target 'SnapshotTestApp' do
target 'SnapshotTestAppTests' do
pod 'SnapshotTesting', '~> 1.1'
end
end Can you also verify that the |
@stephencelis Don't know why it doesn't work. |
Hey @Hoppus. Someone else reported the issue here: I've followed up with a comment that shows a working Podfile vs. a non-working one. But, basically, we wanna go back to a non-nested config for now. This Podfile in its entirety works for me: target 'SnapshotTestAppTests' do
pod 'SnapshotTesting', '~> 1.1'
end |
I just created new file and it started to work 🤔😩 |
@stephencelis sorry for raising this old issue again. But it randomly started happening to our project too. I thought it was Xcode 11 related but other colleagues on 10 are also seeing issues. I've never seen it happen before today so not sure what can be the trigger. Our Podfile does have the test target nested to the app target. Is that what's causing problems? |
Same as @alexito4 we just saw this issue happening. We had the test target nested in the Podfile so we updated to have it separated but same issue. Do we know what's causing this and how to fix it? |
I just recreated test file, and the issue was gone |
I have it working fine on my local machine but the test fails in other machines or in CI with the "file doesn't exist" error. I tried refactoring the Podfile to extract the test target, remove and re-add the file, still getting the error. |
I got it... I had a case difference between the Xcode group name and Finder folder name (one was all caps, the other was capitalized) hence why the framework couldn't find the file in the Finder. Updating the folder name to match with the Xcode group fixed the issue. |
I had problem also and figured out that for framework it doesn’t matter. |
Can not make SnapshotTesting work.
When I use
assertSnapshot(matching: view, as: .image)
I get this message "The file "failed "Test.swift" doesn’t exist"What I can do ?
The text was updated successfully, but these errors were encountered: