Comments (3)
Some example reference build in Javascript:
https://github.com/bahmutov/schema-shot
Which seems to do exactly what I want to achieve, except it is in Javascript which would be the strange duck in the PHPunit test pond.
from phpunit-snapshot-assertions.
Hi @thim81,
First of all, thanks for the detailed proposal! I wouldn't mind having this included in the package if we're able to flesh out the details, but I don't want to maintain too much code for it, since it's not part of the core functionality here.
I'm not sure if we'll be able to do a good conversion though... For example, we won't be able to automatically determine nullable types.
Regarding in implementing something like this, check out custom drivers.
https://github.com/spatie/phpunit-snapshot-assertions#writing-custom-drivers
Lastly, if you find a solution but we don't feel good supporting it here, we'll gladly link to your package so no work is lost :)
from phpunit-snapshot-assertions.
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
from phpunit-snapshot-assertions.
Related Issues (20)
- UTF8 support for assertMatchesHtmlSnapshot HOT 1
- Add option to ignore different line breaks HOT 2
- Tag release with PHP 8.0 support HOT 1
- Return snapshot object from assertion HOT 3
- JSON encode unescape unicode in snapshot file HOT 2
- Allow passing options as env var HOT 6
- MongoDB ObjectId spanshots are wrong HOT 1
- snapshotConstraint proposal
- Is it possible to allow certain differences in snapshots? HOT 3
- Incorrect HTML output HOT 10
- Failing on Windows because of new line
- need a way to update snapshots with codecept HOT 1
- Assertions broken for tests with dataprovider HOT 2
- FileSnapShot no longer includes the name of the data provider
- Tests are not correctly marked as incomplete when creating/updating snapshots HOT 3
- Support inline snapshots HOT 3
- JSON driver fails to assert difference between empty object and array
- Feature Request: Support for Tabular-Assertions as a snapshot format HOT 2
- Updating to PHPUnit 11.x outputs deprecation notices HOT 1
- Allow passing variables to Snapshot to enable dynamic responses
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 phpunit-snapshot-assertions.