-
-
Notifications
You must be signed in to change notification settings - Fork 356
[Map] Make renderer tests way easier to maintain, use snapshots #2658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Kocal
commented
Mar 25, 2025
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
Docs? | no |
Issues | Fix #... |
License | MIT |
ea302ad
to
0f3dc27
Compare
Well, let's move from Symfony's PHPUnit bridge, see #2659 EDIT: let's upgrade Map's Bridges PHPUnit to 11.5.0, that's more simple :D |
e8898f7
to
b935b45
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 10 out of 30 changed files in this pull request and generated no comments.
Files not reviewed (20)
- src/Map/src/Bridge/Google/composer.json: Language not supported
- src/Map/src/Bridge/Google/phpunit.xml.dist: Language not supported
- src/Map/src/Bridge/Google/tests/GoogleRendererTest.php: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set markers with icons__1.txt: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set simple map, with minimum options__1.txt: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set with all markers removed__1.txt: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set with controls enabled__1.txt: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set with custom attributes__1.txt: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set with default map id overridden by option mapId__1.txt: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set with default map id, when passing options (except the mapId)__1.txt: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set with default map id__1.txt: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set with every options__1.txt: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set with marker remove and new ones added__1.txt: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set with markers and infoWindows__1.txt: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set with polygons and infoWindows__1.txt: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set with polylines and infoWindows__1.txt: Language not supported
- src/Map/src/Bridge/Google/tests/snapshots/GoogleRendererTest__testRenderMap with data set without controls enabled__1.txt: Language not supported
- src/Map/src/Bridge/Leaflet/composer.json: Language not supported
- src/Map/src/Bridge/Leaflet/phpunit.xml.dist: Language not supported
- src/Map/src/Bridge/Leaflet/tests/LeafletRendererTest.php: Language not supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I've never used snapshots before.
I think it's something that was made popular years ago with JavaScript, especially with Jest. |
b935b45
to
74b9737
Compare