JSUnit testing - Best Practice with 6.0?

Hi Folks

Trying unit testing out for the first time and looking for some guidance on how it should be structured.

I had anticipated that the testing code should be in the same js that the code to be tested resides. However I noticed that in v5 of Servoy it was suggested that a separate solution should be developed for test code with the solution to be tested as a module.

Since we run a lot of code in the onOpen of our solution, I suspect we would need to switch back and forth between development solution and test solution - which would kind of defeat the target of automating the testing.

Is that still the recommended approach?

Hey Servoy Dudes!

Is this a trade secret? Since there is no documentation on this perhaps you will offer some how-to or at least a broad guideline for unit testing???