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

Remove final on 'cleanup' method and provide JUnit implementation warnings. #6261

Merged
merged 5 commits into from
Dec 30, 2023

Conversation

TheLimeGlass
Copy link
Contributor

Description

Removes the final modifier on the 'cleanup' method, because this method will automatically cleanup all test data instantly, as JUnit runs instantly, and Skript itself will collect the results after the defined amount of shutdown time in ticks.

If a test is to be delayed, it needs to override the 'cleanup' method and do nothing in the method because the cleanup will happen at a later time in the junit script file code.

Added warnings to explain that if the test is delayed it needs to override the 'cleanup' method and do the cleanup itself.


Target Minecraft Versions: any
Requirements: none
Related Issues: none

@TheLimeGlass TheLimeGlass added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.8 Targeting a 2.8.X version release labels Dec 28, 2023
Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the skript-aliases update from this PR?
Everything else looks solid!

@sovdeeth sovdeeth added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Dec 30, 2023
@APickledWalrus APickledWalrus merged commit c3b0f44 into dev/feature Dec 30, 2023
5 checks passed
@APickledWalrus APickledWalrus deleted the fix/junit-final-cleanup branch December 30, 2023 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.8 Targeting a 2.8.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants