Comments (6)
Hi @lcombs15 thank you for let us know, I'll take a look and fix it. You can use your workaround in the meantime or send a PR with the fix.
from kotlinsnapshot.
Work around
You have two options:
- Delete the failing snapshot and re-run tests. Rely on version control.
- View the diff and copy/paste it into the snapshot yourself
from kotlinsnapshot.
To my knowledge purging snapshots doesn't work either. I had an unused snapshot and it was not removed.
from kotlinsnapshot.
I've been looking into this today. The Java properties are not persisting into the task.
In other words, this code isn't doing anything:
System.setProperty "updateSnapshots", "1"
How else could we alert the plugin it's time to update snapshots? I almost wonder if this is broken by newer versions of gradle
from kotlinsnapshot.
Hi @lcombs15 thanks for reporting. It looks like something related to the Gradle version you are using. Could you please paste here which Gradle version are you using. If you could also create a minimum reproducible example project, that'd be great
As @tonilopezmr mentioned he's going to take a look at the fix, I'll assign this issue to him. Thank you both for your help!
from kotlinsnapshot.
PR open for this
from kotlinsnapshot.
Related Issues (20)
- CI failing due to toString serialization HOT 7
- Group snapshots inside a folder with the test class name
- Add documentation about SerializationModule and tests
- Improve serialization format
- Private fields errors in data classes HOT 1
- When add snapshot name manually, it isn't extracting the class name
- Add support for file comparisons in intellj idea when a snapshot test fails HOT 2
- KotlinSnapshot doesn't extract the test names automatically with JUnit 5 HOT 5
- androidTest unresolved reference to KotlinSnapshot
- ./gradlew purgeSnapshots doesn't seem to work HOT 2
- This testing approach used by this project is mostly known as "approval testing" HOT 1
- Dev Documentation > Local maven repo HOT 1
- Dev Documentation > File Structure HOT 1
- Dev Documentation > How to release? HOT 1
- Dev Documentation > General project setup HOT 1
- Can't serialize object with List attribute
- Option to Fail if Snapshot is Missing HOT 5
- Patch vulnerable gson lib
- [Request] Compatibility with Kotest's StringSpec
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 kotlinsnapshot.