Comments (6)
It makes sense for me to create a repro. Thanks for your explanation as you march towards improving the docs!
from snapper.
Hmmm I'm not sure why this is an issue with the current version of Snapper.
Snapper compares snapshots by converting it to a JObject
first and then compares the stored snapshot and the new snapshot. By converting it to JObject
it should remove all line endings from being a factor.
Would it be possible for you to create a quick demo of this?
from snapper.
Perhaps the internal comparison is correct, but it writes out the latest version with change in line endings.
I will see if updating Snapper helps - if there was a previous fix for this please let me know. Thank you.
from snapper.
Perhaps the internal comparison is correct, but it writes out the latest version with change in line endings.
Hmm that is quite odd behaviour. It shouldn't update the file unless there was a difference and update snapshots is set.
I will see if updating Snapper helps - if there was a previous fix for this please let me know. Thank you.
Not that I can think of. The behaviour as always been this. If the latest version doesn't solve the issue would it be possible for you to make a quick project with this issue?
You could add a test into Snapper and make a PR. The PR build runs on a windows instance so if the test was made using linux the line endings issue should be there.
Sorry I can't be of more help.
from snapper.
Hey @jzabroski, did you end up figuring out the problem was?
from snapper.
Closing this issue as its been a couple of months and nothing has come of it.
from snapper.
Related Issues (20)
- Add support of self referencing loop HOT 3
- [BUG] ShouldUpdateSnapshot does not respect SnapshotSettings HOT 1
- Support NUnit v4
- [DOCUMENTATION] SupportedTestMethodNotFoundException HOT 3
- 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.