godot-guildleader
Set up
On Mac:
-
Download the latest Godot release.
-
Place the Godot binary in /usr/local/bin and make sure it is called godot
-
In terminal. create bash_profile file if not exist;
touch ~/.bash_profile
-
Open file with TextEdit;
open -a TextEdit ~/.bash_profile
-
Paste this export
PATH=/usr/local/bin:$PATH
into TextEdit. -
Save and close.
-
Apply changes:
source ~/.bash_profile
-
Create symlink for Godot binary
ln -s /Applications/Godot.app/Contents/MacOS/Godot /usr/local/bin/godot
-
Now you can use godot from the command line, like so:
$: godot
Running tests
Tests are run from the command line.
- Open Terminal
godot -s test_autoplay.gd -d
Editing and adding tests
test_autoplay.gd
acts as a "test runner". The file that's run from the command line has to extend SceneTree, but the tests themselves need to extend Node, hence the two-file setup. autoplay_node.gd
contains the tradeskill test data.