-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GD-146: Add shortcut support to run/debug/create tests (#148)
# Why Some users want to use shortcuts instead of using context menues # What Added os specific shortcuts: **Windows**: CTRL+F5 - ReRun Tests CTRL+F6 - ReRun Tests (Debug) CTRL+F7 - Run overall Tests CTRL+F8 - Stop test execution CTRL+ALT+F5 - Run Testcase CTRL+ALT+F6 - Debug Testcase CTRL+ALT+F10 - Create Testcase **MacOs**: COMMAND+F5 - ReRun Tests COMMAND+F6 - ReRun Tests (Debug) COMMAND+F7 - Run overall Tests COMMAND+F8 - Stop test execution COMMAND+ALT+F5 - Run Testcase COMMAND+ALT+F6 - Debug Testcase COMMAND+ALT+F10 - Create Testcase Added new settings to configure shortcuts ![image](https://user-images.githubusercontent.com/347037/227728029-7db56238-97de-4458-ab1f-69048e93126c.png)
- Loading branch information
1 parent
1b803c0
commit 41813b2
Showing
24 changed files
with
711 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
class_name GdUnitCommand | ||
extends RefCounted | ||
|
||
|
||
func _init(p_name :String, p_is_enabled: Callable, p_runnable: Callable, p_shortcut :GdUnitShortcut.ShortCut = GdUnitShortcut.ShortCut.NONE): | ||
assert(p_name != null, "(%s) missing parameter 'name'" % p_name) | ||
assert(p_is_enabled != null, "(%s) missing parameter 'is_enabled'" % p_name) | ||
assert(p_runnable != null, "(%s) missing parameter 'runnable'" % p_name) | ||
assert(p_shortcut != null, "(%s) missing parameter 'shortcut'" % p_name) | ||
self.name = p_name | ||
self.is_enabled = p_is_enabled | ||
self.shortcut = p_shortcut | ||
self.runnable = p_runnable | ||
|
||
|
||
var name: String: | ||
set(value): | ||
name = value | ||
get: | ||
return name | ||
|
||
|
||
var shortcut: GdUnitShortcut.ShortCut: | ||
set(value): | ||
shortcut = value | ||
get: | ||
return shortcut | ||
|
||
|
||
var is_enabled: Callable: | ||
set(value): | ||
is_enabled = value | ||
get: | ||
return is_enabled | ||
|
||
|
||
var runnable: Callable: | ||
set(value): | ||
runnable = value | ||
get: | ||
return runnable |
Oops, something went wrong.