Skip to content

Commit

Permalink
caught in self-code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwes committed Sep 23, 2018
1 parent da6b808 commit 8dc44e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions addons/gut/gut_cmdln.gd
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ func load_options_from_config_file(file_path, into):
into.log_level = get_value(results.result, 'log', 1)
into.inner_class = get_value(results.result, 'inner_class', '')
into.opacity = get_value(results.result, 'opacity', 100)
#into.include_subdirs = get_value(results.result, 'include_subdirs', false)

return 1

Expand Down Expand Up @@ -483,7 +482,7 @@ func _init():
else:
load_auto_load_scripts()
apply_options(opt_resolver.get_resolved_values())

if(_auto_run):
_tester.test_scripts(!_run_single)

Expand Down
4 changes: 1 addition & 3 deletions addons/gut/summary.gd
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,8 @@ func get_totals():
totals.pending += _scripts[s].get_pending_count()
totals.failing += _scripts[s].get_fail_count()
totals.tests += _scripts[s]._test_order.size()
if(_scripts[s].name.find('.gd.') == -1):
totals.scripts += 1

#totals.scripts = _scripts.size()
totals.scripts = get_non_inner_class_script_count()

return totals

Expand Down
2 changes: 1 addition & 1 deletion test/parsing_and_loading_samples/test_samples.gd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extends "res://addons/gut/test.gd"
func before_each():
gut.p("ran setup", 2)

func after_all():
func after_each():
gut.p("ran teardown", 2)

func before_all():
Expand Down

0 comments on commit 8dc44e6

Please sign in to comment.