-
Notifications
You must be signed in to change notification settings - Fork 221
Add tests for notes overlay script #1403
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
84f0abd to
c7d0937
Compare
219e7ff to
5780653
Compare
We do not currently have an obvious way to center map on notes in tests and force-render map. Without it, we can test reliably only on current visible screen
Test failed if the cam has been in left-top corner of the map
50d3018 to
da68893
Compare
| config = { | ||
| target = 'notes', | ||
| mode = 'fortress' | ||
| } |
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.
you can automatically run test setup and cleanup by defining config.wrapper. Example: test/assign-minecarts.lua or test/plugins/orders.lua
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.
I feel such helpers only make the code harder to understand, I prefer explicit definition for setup and cleanup per test.
Add tests for
notesoverlay and forgui/notesscript.