I’ve written a small editor tool which simply checks and updates a few text files periodically to simplify my workflow.
The current implementation has 3-4 scripts and 1-2 ScriptableObjects and everything is inside the “Assets/Plugins/MyPlugin/” folder.
I’m thinking about turning this into a custom package instead.
However I am unsure about the tests mentioned on this manual page: Unity - Manual: Adding tests to a package
It says “As with any kind of development, it is good practice to add tests to your package. There are three things you must do in order to set up tests on your package” and explains how to set them up.
I find the wording to be a bit ambiguous: “good practice” vs “must do”. Does this mean that tests are entirely optional? Or are they required in some form (even a stub implementation which does nothing) in order for the code to work as a package?
Honestly I don’t even know what I could possibly even want to test, let alone how to write those tests… Is there any kind of framework in place, any methods I can/must override for them to be called (like e.g. the “OnInspectorGUI” method for custom editors)?
The manual pages contain absolutely nothing about any of this.