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 --recursiveIf 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 mainThen, in the main repo:
git add firefox-ios/EcosiaTests/SnapshotTests/SnapshotArtifacts
git commit -m "Update submodule reference"
git push origin mainSince this repository handles large snapshot files, Git LFS must be installed:
git lfs installTo ensure new files are tracked:
git lfs track "*.png"
git add .gitattributesIf you encounter issues with missing submodules, ensure you have:
git submodule syncIf the submodule appears as an empty directory, run:
git submodule update --init --recursive