Skip to content

Conversation

@TFSMads
Copy link
Contributor

@TFSMads TFSMads commented Oct 30, 2025

Problem

The Skript project currently has very low test coverage for its existing syntax and no recent list of test coverage.

Solution

This PR adds tests for the following syntax:

  • EffMakeEggHatch
  • EffElytraBoostConsume
  • EffChange
  • EffCommand
  • EffExit
  • EffKill
  • EffReturn
  • EffTame
  • SecCatchErrors
  • SecLoop

This PR also adds an up to date list of test coverage.

Testing Completed

Tests have been tested on versions 1.20.6, 1.21.3, 1.21.4, 1.21.5, 1.21.8 and 1.21.10.

Supporting Information


Completes: none
Related: #6158

@TFSMads TFSMads requested a review from a team as a code owner October 30, 2025 13:11
@TFSMads TFSMads requested review from TheMug06 and cheeezburga and removed request for a team October 30, 2025 13:11
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Oct 30, 2025
To run individual test files, use <code>/sk test \<file\></code>. To run last
used file again, just use <code>/sk test</code>.

## Test Coverage
Copy link
Member

Choose a reason for hiding this comment

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

this is bound to become outdated, should we keep it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree that it could potentially become outdated, but I still think it’s valuable to keep. The test coverage list provides a clear overview of what’s currently tested and helps identify missing tests, especially for new contributors. Even if it requires occasional updates, it serves as useful documentation for anyone working on improving test coverage.

Choose a reason for hiding this comment

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

It won't become outdated if PR's that add new tests are required to update the list.

Copy link
Member

Choose a reason for hiding this comment

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

I'm ok with adding it if you, @TFSMads, or someone else is willing to take responsibility in occasionally checking to see if it's up to date (e.g. monthly, after every release). It's not something I have the time or will to ensure is up to date so I'd like someone who's able to keep track of it. If it's not updated, it won't be useful.

It's not currently up to date though so that needs fixing first, regardless.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm willing to take responsibility in occasionally updating the list to ensure it stays up to date.

Copy link
Member

Choose a reason for hiding this comment

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

Wonderful, thank you!

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.

sorry for such a long delay in reviewing, it slipped off my queue and only just now saw it again

Comment on lines +5 to +9
function returnTest() returns number:
return 42

function returnTest2() returns numbers:
return 1,2,3 and 4
Copy link
Member

Choose a reason for hiding this comment

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

it'd be nice to see some tests that require conversions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What do you mean by tests that require conversion?

To run individual test files, use <code>/sk test \<file\></code>. To run last
used file again, just use <code>/sk test</code>.

## Test Coverage
Copy link
Member

Choose a reason for hiding this comment

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

I'm ok with adding it if you, @TFSMads, or someone else is willing to take responsibility in occasionally checking to see if it's up to date (e.g. monthly, after every release). It's not something I have the time or will to ensure is up to date so I'd like someone who's able to keep track of it. If it's not updated, it won't be useful.

It's not currently up to date though so that needs fixing first, regardless.

@skriptlang-automation skriptlang-automation bot removed the needs reviews A PR that needs additional reviews label Dec 24, 2025
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs reviews A PR that needs additional reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants