Skip to content
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

Custom snapshots path #79

Open
AllDmeat opened this issue Dec 5, 2024 · 0 comments
Open

Custom snapshots path #79

AllDmeat opened this issue Dec 5, 2024 · 0 comments

Comments

@AllDmeat
Copy link

AllDmeat commented Dec 5, 2024

Context πŸ•΅οΈβ€β™€οΈ

Our project structure is split into bunch of modules with same structure like this:

ModuleName
β”œβ”€β”€ Sources
└── Tests

We've been using swift-snapshot-testing for quite a while, but without Prefire. swift-snapshot-testing saved snapshots into Tests folder, so structure actually was like this:

ModuleName
β”œβ”€β”€ Sources
└── Tests
    └── __Snapshots__

What 🌱

We started writing tests using Prefire, but it stores snapshots in a different location. So now we have two folders with snapshots:

ModuleName
β”œβ”€β”€ Sources
β”œβ”€β”€ Tests
β”‚   └── __Snapshots__
└── ModuleNameTests
    └── __Snapshots__

Proposal πŸŽ‰

While the case totally isn't a critical one it still would be great to have a way to customize path for generated snapshots or to match with swift-snapshot-testing defaults.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant