Author Topic: Unit Testing and other questions  (Read 151 times)

Splyth

  • Newbie
  • *
  • Posts: 7
    • View Profile
Unit Testing and other questions
« 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.

llamazing

  • Full Member
  • ***
  • Posts: 186
    • View Profile
Re: Unit Testing and other questions
« Reply #1 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
« Last Edit: April 13, 2019, 06:09:06 pm by llamazing »

Splyth

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Unit Testing and other questions
« Reply #2 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