Unit Testing and other questions

Started by Splyth, April 13, 2019, 04:40:49 PM

Previous topic - Next topic
I've been working with Solarus for a little bit now, and I got some code written. And I've done my best to document
it as well as possible, but I'm still a lua noob (I'm a ruby programmer by trade) and I really miss the rspec gem framework.

I've tried to check out busted and a few of the other frameworks around, but I can't seem to make them work for me (running Windows 10)

Also as a side note I heard Solarus 6 was compatible with some external editors. Are there plans to add VS Code, or Atom to that list?

Currently I'm coding in VSCode then switching to Solarus to actually run and test the game. Which is workable, but it would be nice not to have to flip
screens every time I want to run it.

April 13, 2019, 06:06:24 PM #1 Last Edit: April 13, 2019, 06:09:06 PM by llamazing
I don't know anything about frameworks like busted, but you can set up an external editor from the Solarus Quest Editor preferences on the "Text Editor" tab. Atom should be no problem, not sure about VSCode, but I'm guessing it could be made to work as well.

EDIT ZeroBrane is what the Solarus Team uses for lua debugging, so you could try that:
https://gitlab.com/solarus-games/solarus/tree/dev/work/ZBStudioPlugin

I tried to get external editors to play nice with solarus but I had no luck.

Thanks for the help though