Skip to content

Commit

Permalink
fix coverage runner
Browse files Browse the repository at this point in the history
  • Loading branch information
leanmendoza committed Sep 26, 2024
1 parent 8308018 commit cf123c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion godot/src/global.gd
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func _ready():
Global.content_provider.clear_cache_folder()

# #[itest] only needs a godot context, not the all explorer one
if args.has("--test"):
if args.has("--test-runner"):
print("Running godot-tests...")
var test_runner = load("res://src/test/test_runner.gd").new()
add_child(test_runner)
Expand Down
2 changes: 1 addition & 1 deletion godot/src/main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ func _ready():

func start():
var args = OS.get_cmdline_args()
if args.has("--test"):
if args.has("--test-runner"):
return

if not OS.has_feature("Server"):
Expand Down
2 changes: 1 addition & 1 deletion src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub fn run(
if itest {
args.push("--headless");
args.push("--verbose");
args.push("--test");
args.push("--test-runner");
}

if !extras.is_empty() {
Expand Down

0 comments on commit cf123c1

Please sign in to comment.