Option7-OctoPuss / MeetYourTesterGame

Game in godot
MIT License
3 stars 0 forks source link

MeetYourTesterGame

Game in godot

Project structure

.
├── addons
├── audio
├── images
├── project.godot
└── ui
    ├── main_screen
    └── menus
        ├── difficulty
        ├── main_menu
        └── pause_menu

Every new .gd and .tscn should be placed in the respective folder in according to this structure

Code conventions

We follow the Godot Style Guide here

How To GUT

Install GUT

Steps above are not needed since the required plugin is already in repo:

Activate GUT in Godot project

Steps to activate GUT

Tests execution

GUI Execution using Godot

Here the steps to run tests using Godot

CLI execution (optional)

Following steps are required to executes via CLI. Please, install scoop following "Install scoop" section before proceed with CLI tests execution

Execute cd command to move to the current project directory

Execute the following command to run tests on res://test/ containing prefix file name test_

godot -d -s --path ./ addons/gut/gut_cmdln.gd -gdir=res://test/ -gprefix=test_ -gexit_on_success

Install scoop (needed only to run tests using CLI)

scoop is required only if executing godot tests using CLI. Here powershell commands to install it:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex
scoop bucket add extras
scoop install godot