Skip to content
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

Merged
merged 5 commits into from
Mar 25, 2025
Merged

Test/events #109

merged 5 commits into from
Mar 25, 2025

Conversation

p1k0chu
Copy link
Contributor

@p1k0chu p1k0chu commented Mar 11, 2025

slowly adding tests for events

@pull-request-size pull-request-size bot added the size/L Large size PR label Mar 11, 2025
@LukynkaCZE
Copy link
Contributor

holy shit you are the goat

@p1k0chu
Copy link
Contributor Author

p1k0chu commented Mar 11, 2025

:D
do you think the player should work for entity damage event because i noticed it doesn't work

@LukynkaCZE
Copy link
Contributor

:D do you think the player should work for entity damage event because i noticed it doesn't work

probably yes

@pull-request-size pull-request-size bot added size/XL and removed size/L Large size PR labels Mar 13, 2025
@p1k0chu
Copy link
Contributor Author

p1k0chu commented Mar 21, 2025

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
and then assertion 1 == count_entities_player_can_see fails

@LukynkaCZE
Copy link
Contributor

Yeah I know I couldn't find it either

@p1k0chu
Copy link
Contributor Author

p1k0chu commented Mar 21, 2025

should i rebase this hell of merge commits onto master before undrafting?

@LukynkaCZE
Copy link
Contributor

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

@LukynkaCZE
Copy link
Contributor

Also just wanna say I very much appreciate you taking time to do this and generally contribute! :3

@p1k0chu
Copy link
Contributor Author

p1k0chu commented Mar 22, 2025

That was I'm actually forced to add them for new events cause for publish tests have to pass first

Well right now some events do not have tests so that would just fail every time for a while 😭

@p1k0chu p1k0chu marked this pull request as ready for review March 22, 2025 10:10
@LukynkaCZE
Copy link
Contributor

That was I'm actually forced to add them for new events cause for publish tests have to pass first

Well right now some events do not have tests so that would just fail every time for a while 😭

thats fine I think

@p1k0chu
Copy link
Contributor Author

p1k0chu commented Mar 23, 2025

did i cook

@p1k0chu
Copy link
Contributor Author

p1k0chu commented Mar 23, 2025

also rip github action its not gonna like this one

@LukynkaCZE
Copy link
Contributor

did i cook

Oh you did 🔥

Also I gotta figure out why it says insufficient permissions to upload the results in prs not done by me

@p1k0chu
Copy link
Contributor Author

p1k0chu commented Mar 23, 2025

image
incredible
works on my machine

p1k0chu added 2 commits March 24, 2025 00:46
PluginMessageReceivedEvent edition
and an overload in PlayerTestUtil.sendPacket for default player
@p1k0chu
Copy link
Contributor Author

p1k0chu commented Mar 23, 2025

i wont make tests for those events left
(they are packets :c)

@LukynkaCZE
Copy link
Contributor

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

@LukynkaCZE LukynkaCZE merged commit 817fa15 into DockyardMC:master Mar 25, 2025
1 of 2 checks passed
@p1k0chu p1k0chu deleted the test/events branch March 25, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants