I’ve created new small plugin that will help you to create unit tests inside Grasshopper, it can be helpful if you use Python or C# scripts, when you develop your own plugins or when you have complex definitions to check. Let me know what you think.
Hello Keyu @gankeyu
Nice plugin sir. “Those who share their own GH definition with others, and want to ensure the definition is used correctly”. Can you explain me this part of with your plugin if possible show me some small demo.
If the output surface is involved in further calculations, the entire process will be messed up.
Here you can add a contract of the input and the output must have the same length and structure, and abort the computation to avoid freezing due to exploded data tree.
The original intention is: I created a huge definition and share it with my teammates. Sometimes they run into issues and cannot figure out where. Getting information between steps makes debugging much easier.
Say you are the author of a Grasshopper script, and you want to share your script with somebody else. You know your Grasshopper script can only work in a limited circumstances, for example, only work on circles, on closed geometry, etc. Instead of describing the limitation, you can use the “Contracts” inside your Grasshopper script to show whether the input is allowed, etc, and save time for both of you.