Skript: Need a collection of test scripts

Created on 19 Apr 2018  路  11Comments  路  Source: SkriptLang/Skript

Stability of Skript tends to vary a lot. If we had a complete test suite of scripts which could be used to check pull requests (and my own changes, too...) and especially, ran before the release, the situation would likely improve a lot.

Now, I don't quite have time to write such a complete test collection. But perhaps some of you could help?

If interested, message here about what exactly you would be writing tests for. We don't want duplicate work. Scripts can be submitted as pull requests or, if that is too hard, copied somewhere for me to merge in. They must be licensed under GPLv3 as all other code contributions are. No license headers necessary, though.

Some style guidance:

  • Use tabs for indentation
  • Make sure your scripts actually work with current latest release
  • Don't use addons
  • Leave comments if you're testing particularly advanced features
  • Have your tests not permanently alter the world of test server if possible
completed enhancement medium

Most helpful comment

Because the point is to test Skript, not its addons. We are not responsible for addons.

All 11 comments

Should/could new test scripts be based off of the current default scripts in the scripts folder?

I'm not sure, need to talk with people who're interested in helping with this.

  • Don't use addons

lol why

Because the point is to test Skript, not its addons. We are not responsible for addons.

oooo i get it now

I recently open sourced all of my code, perhaps it can help you. I do however use basically every addon and have no sense of what code uses addons and what doesn't. Perhaps you can pick and choose.

I'm down. If you could like make a list or whatever I can make anything.

inventory click event with title of gui isn't working

inventory type isnt working

I will write 2 tests:

  • 1 about inventories
  • 1 about blocks placements (e.g. on break, on place....)

I will write a test api too to make it cleaner if anyone want contribute too. I will put these tests in a branch named "tests" or something like that and make the pull request in few days.

Testing system has been merged, and we're ready to start accepting tests in pull requests. Further improvements will be done as needed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

Anoniempje1234 picture Anoniempje1234  路  3Comments

Misio12320 picture Misio12320  路  3Comments

TheClassic36 picture TheClassic36  路  3Comments

Eryk1983S picture Eryk1983S  路  3Comments