Comments (5)
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.
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.
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.
@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.
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)
- Skript: "An internal error occurred while attempting to perform this command." HOT 1
- Cannot write variables to the database 'CSV' at sufficient speed HOT 6
- Aliases.load() takes to long -> Paper kills server HOT 1
- Exception in thread Skript database 'database 1' monitor thread HOT 1
- Conditions for items in player's inventory with a weird behavior HOT 6
- name of player's tool/name of player's held item does not work HOT 4
- On Left click bug HOT 1
- FlatFileStorage saving async throwing Assertion Error exception
- armor stand look at HOT 2
- Falling blocks being destroyed does not trigger on damage or on death HOT 7
- Allow OR lists for CondIsWithin HOT 3
- Add a proper error message when using event-values in functions HOT 2
- EntryContainer methods throw NullPointerException HOT 1
- Vectors + Push HOT 2
- [BUG] Skript functionality not working correctly. HOT 2
- Add a where filter for ExprTarget
- Skript for Client Side support for World Creators and devs HOT 2
- Console Warnings HOT 2
- SkriptParser incorrectly checks whether an expression in a pattern is nullable
- "all potion effects from {_variable}" doesn't properly error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skript.