Skip to content

Commit

Permalink
All tests repaired
Browse files Browse the repository at this point in the history
  • Loading branch information
SlashScreen committed Jul 11, 2023
1 parent 7877453 commit a054827
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gut_editor_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"post_run_script": "",
"pre_run_script": "",
"prefix": "test_",
"selected": "test_inventory.gd",
"selected": null,
"should_exit": false,
"should_exit_on_success": false,
"should_maximize": false,
Expand Down
110 changes: 109 additions & 1 deletion Tests/Output/output.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="GutTests" failures="0" tests="5" >
<testsuites name="GutTests" failures="0" tests="45" >
<testsuite name="res://tests/test_attributes.gd" tests="2" failures="0" skipped="0" >
<testcase name="test_save" assertions="1" status="pass" classname="res://tests/test_attributes.gd" >
</testcase>
<testcase name="test_load" assertions="1" status="pass" classname="res://tests/test_attributes.gd" >
</testcase>
</testsuite>
<testsuite name="res://tests/test_core.gd" tests="0" failures="0" skipped="0" >
</testsuite>
<testsuite name="res://tests/test_core.gd.TestInScene" tests="4" failures="0" skipped="0" >
<testcase name="test_in_world" assertions="1" status="pass" classname="res://tests/test_core.gd.TestInScene" >
</testcase>
<testcase name="test_out_of_world" assertions="1" status="pass" classname="res://tests/test_core.gd.TestInScene" >
</testcase>
<testcase name="test_in_world_out_range" assertions="1" status="pass" classname="res://tests/test_core.gd.TestInScene" >
</testcase>
<testcase name="test_out_world_out_range" assertions="1" status="pass" classname="res://tests/test_core.gd.TestInScene" >
</testcase>
</testsuite>
<testsuite name="res://tests/test_core.gd.TestActivityTimers" tests="2" failures="0" skipped="0" >
<testcase name="test_stale_timer" assertions="2" status="pass" classname="res://tests/test_core.gd.TestActivityTimers" >
</testcase>
<testcase name="test_poke" assertions="1" status="pass" classname="res://tests/test_core.gd.TestActivityTimers" >
</testcase>
</testsuite>
<testsuite name="res://tests/test_crime.gd" tests="3" failures="0" skipped="0" >
<testcase name="test_add_crime" assertions="1" status="pass" classname="res://tests/test_crime.gd" >
</testcase>
<testcase name="test_bounty" assertions="1" status="pass" classname="res://tests/test_crime.gd" >
</testcase>
<testcase name="test_coven_opinion_change" assertions="1" status="pass" classname="res://tests/test_crime.gd" >
</testcase>
</testsuite>
<testsuite name="res://tests/test_inventory.gd" tests="5" failures="0" skipped="0" >
<testcase name="test_add" assertions="1" status="pass" classname="res://tests/test_inventory.gd" >
</testcase>
Expand All @@ -12,4 +44,80 @@
<testcase name="test_drop" assertions="2" status="pass" classname="res://tests/test_inventory.gd" >
</testcase>
</testsuite>
<testsuite name="res://tests/test_merchant.gd" tests="4" failures="0" skipped="0" >
<testcase name="test_sell" assertions="2" status="pass" classname="res://tests/test_merchant.gd" >
</testcase>
<testcase name="test_buy" assertions="2" status="pass" classname="res://tests/test_merchant.gd" >
</testcase>
<testcase name="test_sell_modifier" assertions="2" status="pass" classname="res://tests/test_merchant.gd" >
</testcase>
<testcase name="test_buy_modifier" assertions="2" status="pass" classname="res://tests/test_merchant.gd" >
</testcase>
</testsuite>
<testsuite name="res://tests/test_navmaster.gd" tests="4" failures="0" skipped="0" >
<testcase name="test_load" assertions="1" status="pass" classname="res://tests/test_navmaster.gd" >
</testcase>
<testcase name="test_build_network" assertions="4" status="pass" classname="res://tests/test_navmaster.gd" >
</testcase>
<testcase name="test_find_closest_point" assertions="1" status="pass" classname="res://tests/test_navmaster.gd" >
</testcase>
<testcase name="test_find_path" assertions="1" status="pass" classname="res://tests/test_navmaster.gd" >
</testcase>
</testsuite>
<testsuite name="res://tests/test_npc.gd" tests="0" failures="0" skipped="0" >
</testsuite>
<testsuite name="res://tests/test_npc.gd.TestSpells" tests="3" failures="0" skipped="0" >
<testcase name="test_spell_apply" assertions="1" status="pass" classname="res://tests/test_npc.gd.TestSpells" >
</testcase>
<testcase name="test_spell_damage" assertions="1" status="pass" classname="res://tests/test_npc.gd.TestSpells" >
</testcase>
<testcase name="test_spell_autoremoval" assertions="1" status="pass" classname="res://tests/test_npc.gd.TestSpells" >
</testcase>
</testsuite>
<testsuite name="res://tests/test_npc.gd.TestDamage" tests="5" failures="0" skipped="0" >
<testcase name="test_blunt_damage" assertions="1" status="pass" classname="res://tests/test_npc.gd.TestDamage" >
</testcase>
<testcase name="test_resistance" assertions="1" status="pass" classname="res://tests/test_npc.gd.TestDamage" >
</testcase>
<testcase name="test_stacked_magic_resistance" assertions="1" status="pass" classname="res://tests/test_npc.gd.TestDamage" >
</testcase>
<testcase name="test_stamina_damage" assertions="1" status="pass" classname="res://tests/test_npc.gd.TestDamage" >
</testcase>
<testcase name="test_will_damage" assertions="1" status="pass" classname="res://tests/test_npc.gd.TestDamage" >
</testcase>
</testsuite>
<testsuite name="res://tests/test_npc.gd.TestNavigation" tests="0" failures="0" skipped="0" >
</testsuite>
<testsuite name="res://tests/test_npc.gd.TestSchedule" tests="2" failures="0" skipped="0" >
<testcase name="test_different_hours" assertions="2" status="pass" classname="res://tests/test_npc.gd.TestSchedule" >
</testcase>
<testcase name="test_conditional" assertions="1" status="pass" classname="res://tests/test_npc.gd.TestSchedule" >
</testcase>
</testsuite>
<testsuite name="res://tests/test_npc.gd.TestGOAP" tests="5" failures="0" skipped="0" >
<testcase name="test_plan_creation" assertions="2" status="pass" classname="res://tests/test_npc.gd.TestGOAP" >
</testcase>
<testcase name="test_conditional_path" assertions="2" status="pass" classname="res://tests/test_npc.gd.TestGOAP" >
</testcase>
<testcase name="test_plan_execution" assertions="2" status="pass" classname="res://tests/test_npc.gd.TestGOAP" >
</testcase>
<testcase name="test_repeating_goals" assertions="1" status="pass" classname="res://tests/test_npc.gd.TestGOAP" >
</testcase>
<testcase name="test_goal_priority" assertions="2" status="pass" classname="res://tests/test_npc.gd.TestGOAP" >
</testcase>
</testsuite>
<testsuite name="res://tests/test_skills.gd" tests="6" failures="0" skipped="0" >
<testcase name="test_default_level" assertions="1" status="pass" classname="res://tests/test_skills.gd" >
</testcase>
<testcase name="test_manual_level" assertions="1" status="pass" classname="res://tests/test_skills.gd" >
</testcase>
<testcase name="test_save_default" assertions="1" status="pass" classname="res://tests/test_skills.gd" >
</testcase>
<testcase name="test_save_manual" assertions="1" status="pass" classname="res://tests/test_skills.gd" >
</testcase>
<testcase name="test_load_default" assertions="2" status="pass" classname="res://tests/test_skills.gd" >
</testcase>
<testcase name="test_load_manual" assertions="2" status="pass" classname="res://tests/test_skills.gd" >
</testcase>
</testsuite>
</testsuites>
2 changes: 1 addition & 1 deletion Tests/TestAssets/test_item_data.tres
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ valid_slots = Array[int]([0])
script = ExtResource("2_6rh1w")
prefab = ExtResource("1_vsrj4")
weight = 0.0
worth = 0
worth = 20
components = Array[Resource("res://addons/skelerealms/scripts/data/ItemDataComponents/item_data_component.gd")]([SubResource("Resource_xqgy2")])
id = ""

0 comments on commit a054827

Please sign in to comment.