1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.


Discussion in 'Addon Releases' started by Olyno, Mar 3, 2020.

  1. Olyno


    Feb 11, 2017
    Likes Received:

    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.


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

Share This Page