Skester

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Olyno

Supporter
Feb 11, 2017
20
31
13
XQHOE9c.png



Skester let you create your own unit tests using Skript. Why should you make unit tests? Simply because you can avoid bugs in your scripts. Unit tests will repeat the same tasks that you ask, so if one of them fail but worked before, it means you broke something.

Usage:

Code:
command test [<text>]:
    trigger:
        it "should test this command":
            it "should be the console which execute this command":
                assert equal sender to console with error message "Only console can execute this command!"
            it "should have an argument named a":
                assert not null arg-1 with error message "There are an argument"
                assert equals arg-1 to "a" with error message "First argument isn't a"