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.

Addon Skester 1.1.0

Create your own unit tests for your scripts!

Tags:
  1. Olyno
    Supported Minecraft Versions:
    • 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15
    [​IMG]


    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:

    Write tests:


    Code (Text):
    1. command test [<text>]:
    2.     trigger:
    3.         it "checks the sender":
    4.             assert if sender is player with message "The sender should be a player"
    5.             it "checks permissions":
    6.                 assert if player is op with message "The player should be OP!"
    7.         it "checks argument":
    8.             assert not null arg-1 with message "First argument should not be null"
    9.             assert equals arg-1 to "this" with message "First argument should be ""this"""
    10.  
    And get results:

    [​IMG]
    Lego_freak1999 likes this.

Recent Updates

  1. If we could go further

Recent Reviews

  1. ZeyKra_
    ZeyKra_
    5/5,
    Version: 1.1.0
    So intelligent a very good addon,




    Congrats, this will be an essential addon for everyone
    1. Olyno
      Author's Response