GithubHelp home page GithubHelp logo

Comments (5)

hbbaker avatar hbbaker commented on June 22, 2024

Hi! I'd like to help add tests for existing functions. I'm new to opensource and I'd like to ask a few questions regarding how these tests should be implemented. Thanks!

from skript.

sovdeeth avatar sovdeeth commented on June 22, 2024

Hi! I'd like to help add tests for existing functions. I'm new to opensource and I'd like to ask a few questions regarding how these tests should be implemented. Thanks!

See https://github.com/SkriptLang/Skript/blob/master/src/test/skript/README.md

from skript.

Moderocky avatar Moderocky commented on June 22, 2024

Hi! I'd like to help add tests for existing functions. I'm new to opensource and I'd like to ask a few questions regarding how these tests should be implemented. Thanks!

Sure! It's fairly simple but if you'd like somebody to walk you through the process please contact one of us in our Discord server :)

from skript.

APickledWalrus avatar APickledWalrus commented on June 22, 2024

@Moderocky I think it would be a good idea to establish stronger naming guidelines for tests. What do you think about requiring tests to start with (or just be) the name of the expression. For example, the name of the test for ExprBlockData would just be ExprBlockData. Some files have multiple tests, so in those cases we could use "ExprBlockData - " to differentiate the test names. We may also want to consider whether having multiple tests in one file is practical compared to just "sectioning" tests using comments.

from skript.

Moderocky avatar Moderocky commented on June 22, 2024

For example, the name of the test for ExprBlockData would just be ExprBlockData.

The base test is currently named after the syntax class (like ExprBlockData -> block data)

Some files have multiple tests, so in those cases we could use "ExprBlockData - " to differentiate the test names.

These are usually named <class name> (<thing that requires its own test>) so something like block data (legacy) or block data (1.18+) for example.

I think this is fine since when the test fails that makes it fairly clear what's not working.

What I'm more concerned about is the assertion messages - most testers have taken care to make all of the messages unique (so you can work out which one failed from the message) but ideally I'd like the testing system to be able to determine the line that was the cause of the failure so we don't have to rely on that.

from skript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.