-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Test/events #109
Test/events #109
Conversation
holy shit you are the goat |
:D |
probably yes |
src/test/kotlin/io/github/dockyard/tests/events/PlayerBlockRightClickEventTest.kt
Outdated
Show resolved
Hide resolved
i love how some tests in entity view system just fail to rng for some reason there's some other entity left-over before the EntityViewSystem tests started but idk where it comes from |
Yeah I know I couldn't find it either |
should i rebase this hell of merge commits onto master before undrafting? |
Yeah sure, also if it wouldn't be much maybe have something to make sure every event has test? Just to force me to add tests for when I add new events cause I will 100% forget. Maybe just get all event classes via reflection and have a map in event tests where you map the event class to the test class. Then loop over all the event classes and if it doesn't have a test class associated with it fail the test That was I'm actually forced to add them for new events cause for publish tests have to pass first |
Also just wanna say I very much appreciate you taking time to do this and generally contribute! :3 |
Well right now some events do not have tests so that would just fail every time for a while 😭 |
thats fine I think |
did i cook |
also rip github action its not gonna like this one |
Oh you did 🔥 Also I gotta figure out why it says insufficient permissions to upload the results in prs not done by me |
PluginMessageReceivedEvent edition
and an overload in PlayerTestUtil.sendPacket for default player
EntityPickupItemEvent edition
i wont make tests for those events left |
Alright I will see if I can add tests for all the packet events later in some magic way, thanks for the contribution again <3 |
slowly adding tests for events