CtrlrMocks: Mock Lua Classes to help with development and documenting implementation #621
Closed
unityconstruct
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just pushed up an initial commit of Mock Classes
https://github.com/unityconstruct/CtrlrMocks
require()/return/init()
There are some caveats to using these & developing in IDE environment, namely the require() and return statements
I manage Ctrlr->VSCode and VSCode->Ctrlr environment switching with two Stashes: one that adds them and one that removes
Its a bit of a hassle to switch, but the time saved by being able to develop backend with a VSCode Lua debugger intellisense, etc makes up for this many times over.
even if one doesn't integrate these into develpment, they are still useful as a form of documentation.
Beta Was this translation helpful? Give feedback.
All reactions