Comments (3)
Hey @Marcel-B,
I'm actually looking into this at the moment. I'm thinking of introducing the concept of passing letting a user pass in a SnapshotId
which would define the location of the snapshot.
So it would end up looking something like this.
obj.ShouldMatchSnapshot(new SnapshotId(filePath, snapshotName, childSnapshotName);
What would you think about that?
from snapper.
That looks good. If the file path is automatically taken into the update process, this is excellent!
from snapper.
I've released an experimental feature in 2.2.4. See https://theramis.github.io/Snapper/#/pages/snapper/advanced_snapshot_control for details on how to configure where the snapshot is stored.
from snapper.
Related Issues (20)
- Add support of self referencing loop HOT 3
- [BUG] ShouldUpdateSnapshot does not respect SnapshotSettings HOT 1
- Support NUnit v4
- Support non json HOT 5
- Approach to Environment.NewLine HOT 6
- Use Custom DSL instead of Inheriting NUnit.Framework.Is HOT 5
- Allow exclusion of fields HOT 2
- Create snapshot on first run if none exists HOT 1
- Add support for Specflow
- Custom update snapshot attributes HOT 2
- Allow customising the serializer settings for Snapshots HOT 2
- Add alternative snapshots for decimal values HOT 4
- Serializing non json values HOT 2
- SnapshotDoesNotExistException on Azure Pipelines ubuntu-20.04 Agent HOT 4
- Plain text serialization HOT 4
- Snapshot created with different serialization settings HOT 6
- Enable changing only the snapshot filename HOT 6
- Support NExpect HOT 9
- Support for Unity Test Framework HOT 5
- Remove support for .net 45 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snapper.