Solarus Forum

Solarus => Development => Topic started by: Splyth on April 13, 2019, 04:40:49 pm

Title: Unit Testing and other questions
Post by: Splyth on April 13, 2019, 04:40:49 pm
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.
Title: Re: Unit Testing and other questions
Post by: llamazing on April 13, 2019, 06:06:24 pm
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
Title: Re: Unit Testing and other questions
Post by: Splyth on April 13, 2019, 08:14:27 pm
I tried to get external editors to play nice with solarus but I had no luck.

Thanks for the help though