spatie / phpunit-snapshot-assertions

A way to test without writing actual test cases
https://spatie.be/courses/testing-laravel-with-pest/snapshot-testing
MIT License
640 stars 70 forks source link

Support inline snapshots #173

Closed aszenz closed 9 months ago

aszenz commented 1 year ago

Inline snapshots are a way to create a snapshot of the output when running an expression in a test.

It's similar to snapshot testing but the expected output is stored inline within the source.

It requires modifying the test program to add the output.

See: https://jestjs.io/docs/snapshot-testing#inline-snapshots

aszenz commented 1 year ago

Transferred from https://github.com/sebastianbergmann/phpunit/issues/5438

sebastiandedeyne commented 1 year ago

We'd love to add this at some point! No timeline yet though.

spatie-bot commented 9 months ago

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.