This repository serves as a Git submodule for storing snapshot test artifacts for the iOS project. It ensures that large snapshot files are managed efficiently using Git LFS while keeping the main repository clean and lightweight.
This repo contains only the __Snapshots__
directories from the main iOS repository, maintaining their parent directory structure under SnapshotArtifacts
.
SnapshotArtifacts/
├── [ComponentX]/
│ ├── __Snapshots__/
│ │ ├── snapshot1.png
│ │ ├── snapshot2.png
├── [ComponentY]/
│ ├── __Snapshots__/
│ │ ├── snapshotA.png
│ │ ├── snapshotB.png
If you are working in the main iOS repo and need to initialize this submodule, use:
git submodule update --init --recursive
If cloning the entire project, use:
git clone --recurse-submodules <main-repo-url>
When updating snapshot files, commit and push them directly within this repository:
cd firefox-ios/EcosiaTests/SnapshotTests/SnapshotArtifacts
# Add and commit your changes
git add .
git commit -m "Update snapshot artifacts"
git push origin main
Then, in the main repo:
git add firefox-ios/EcosiaTests/SnapshotTests/SnapshotArtifacts
git commit -m "Update submodule reference"
git push origin main
Since this repository handles large snapshot files, Git LFS must be installed:
git lfs install
To ensure new files are tracked:
git lfs track "*.png"
git add .gitattributes
If you encounter issues with missing submodules, ensure you have:
git submodule sync
If the submodule appears as an empty directory, run:
git submodule update --init --recursive