gdharness 1.3.9 → 1.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/build/cli.js +4563 -3195
  2. package/build/godot/addons/gdharness_editor/animation_reads.gd +115 -4
  3. package/build/godot/addons/gdharness_editor/declared_values.gd +272 -0
  4. package/build/godot/addons/gdharness_editor/file_reads.gd +102 -18
  5. package/build/godot/addons/gdharness_editor/headless_check.gd +49 -2
  6. package/build/godot/addons/gdharness_editor/property_paths.gd +89 -16
  7. package/build/godot/addons/gdharness_editor/property_values.gd +180 -121
  8. package/build/godot/addons/gdharness_editor/reading.gd +51 -1
  9. package/build/godot/addons/gdharness_editor/scene_file.gd +77 -140
  10. package/build/godot/addons/gdharness_editor/scene_uids.gd +107 -0
  11. package/build/godot/addons/gdharness_editor/scene_uids.gd.uid +1 -0
  12. package/build/godot/addons/gdharness_editor/serialisation.gd +11 -22
  13. package/build/godot/addons/gdharness_editor/setting_reads.gd +121 -0
  14. package/build/godot/addons/gdharness_editor/setting_reads.gd.uid +1 -0
  15. package/build/godot/addons/gdharness_editor/tool_executor.gd +28 -5
  16. package/build/godot/addons/gdharness_editor/tools/animation_states.gd +39 -20
  17. package/build/godot/addons/gdharness_editor/tools/animation_tools.gd +49 -362
  18. package/build/godot/addons/gdharness_editor/tools/animation_tracks.gd +464 -0
  19. package/build/godot/addons/gdharness_editor/tools/animation_tracks.gd.uid +1 -0
  20. package/build/godot/addons/gdharness_editor/tools/class_tools.gd +37 -0
  21. package/build/godot/addons/gdharness_editor/tools/navigation_bake.gd +221 -0
  22. package/build/godot/addons/gdharness_editor/tools/navigation_bake.gd.uid +1 -0
  23. package/build/godot/addons/gdharness_editor/tools/resource_tools.gd +147 -492
  24. package/build/godot/addons/gdharness_editor/tools/scene_groups.gd +16 -0
  25. package/build/godot/addons/gdharness_editor/tools/scene_kin.gd +4 -3
  26. package/build/godot/addons/gdharness_editor/tools/scene_paths.gd +2 -1
  27. package/build/godot/addons/gdharness_editor/tools/scene_tools.gd +79 -5
  28. package/build/godot/addons/gdharness_editor/tools/settings_tools.gd +7 -30
  29. package/build/godot/addons/gdharness_editor/tools/signal_tools.gd +183 -37
  30. package/build/godot/addons/gdharness_editor/tools/tileset_tools.gd +485 -0
  31. package/build/godot/addons/gdharness_editor/tools/tileset_tools.gd.uid +1 -0
  32. package/build/godot/addons/gdharness_editor/value_shapes.gd +128 -1
  33. package/build/godot/addons/gdharness_runtime/declared_values.gd +272 -0
  34. package/build/godot/addons/gdharness_runtime/reading.gd +51 -1
  35. package/build/godot/addons/gdharness_runtime/runtime_autoload.gd +35 -3
  36. package/build/godot/addons/gdharness_runtime/runtime_changes.gd +185 -30
  37. package/build/godot/addons/gdharness_runtime/runtime_input.gd +86 -79
  38. package/build/godot/addons/gdharness_runtime/runtime_mouse.gd +17 -0
  39. package/build/godot/addons/gdharness_runtime/runtime_pad.gd +13 -4
  40. package/build/godot/addons/gdharness_runtime/runtime_paths.gd +309 -22
  41. package/build/godot/addons/gdharness_runtime/runtime_queries.gd +163 -20
  42. package/build/godot/addons/gdharness_runtime/runtime_screen.gd +49 -3
  43. package/build/godot/addons/gdharness_runtime/runtime_targets.gd +5 -2
  44. package/build/godot/addons/gdharness_runtime/runtime_values.gd +146 -5
  45. package/build/godot/addons/gdharness_runtime/runtime_waits.gd +279 -11
  46. package/build/godot/addons/gdharness_runtime/runtime_words.gd +27 -0
  47. package/build/godot/addons/gdharness_runtime/serialisation.gd +11 -22
  48. package/build/godot/addons/gdharness_runtime/value_shapes.gd +128 -1
  49. package/build/godot/operations/animation_reads.gd +115 -4
  50. package/build/godot/operations/audio_buses.gd +93 -7
  51. package/build/godot/operations/classdb_queries.gd +119 -7
  52. package/build/godot/operations/declared_values.gd +272 -0
  53. package/build/godot/operations/dependencies.gd +154 -41
  54. package/build/godot/operations/editor_tools.gd +22 -14
  55. package/build/godot/operations/export_presets.gd +602 -4
  56. package/build/godot/operations/file_reads.gd +102 -18
  57. package/build/godot/operations/gdscript_authoring.gd +11 -1
  58. package/build/godot/operations/godot_operations.gd +16 -2
  59. package/build/godot/operations/import_pipeline.gd +20 -221
  60. package/build/godot/operations/input_actions.gd +108 -47
  61. package/build/godot/operations/project_config.gd +83 -69
  62. package/build/godot/operations/project_diagnostics.gd +4 -0
  63. package/build/godot/operations/project_validation.gd +266 -0
  64. package/build/godot/operations/property_paths.gd +89 -16
  65. package/build/godot/operations/property_values.gd +180 -121
  66. package/build/godot/operations/reading.gd +51 -1
  67. package/build/godot/operations/scene_connections.gd +222 -0
  68. package/build/godot/operations/serialisation.gd +11 -22
  69. package/build/godot/operations/setting_reads.gd +121 -0
  70. package/build/godot/operations/value_shapes.gd +128 -1
  71. package/build/godot/tests/listed.gd +20 -13
  72. package/build/keeper.js +1371 -706
  73. package/package.json +1 -1
@@ -10,8 +10,8 @@ extends SceneTree
10
10
  ## its own and reaches gdUnit4 through the project's global classes. Besides the file of suites it
11
11
  ## finds each case by its id in a dictionary ([GdhIndexedSession]), can compile the suites together
12
12
  ## before gdUnit4 loads them ([constant TOGETHER]), can turn off the reports the caller does
13
- ## not read ([constant REPORTS_OFF]), and writes the errors each suite declares it expects
14
- ## ([constant EXPECTED_OUT]).
13
+ ## not read ([constant REPORTS_OFF]), and writes the errors and warnings each suite declares it
14
+ ## prints ([constant EXPECTED_OUT]).
15
15
 
16
16
  const LISTED: String = "--suites-in"
17
17
  const SKIPPING: String = "--skipping-in"
@@ -27,11 +27,15 @@ const REPORTS_OFF: Dictionary[String, String] = {
27
27
  ## does not compile named. project_test does not: its answer is about the scripts its run reached,
28
28
  ## and the compile names every broken script of the game, then once more as the one script it made.
29
29
  const TOGETHER: String = "--compile-together"
30
- ## The file to write the errors every suite declares it expects into, as JSON keyed by suite path and
31
- ## then case name.
32
- const EXPECTED_OUT: String = "--expected-errors-out"
33
- ## The constant a suite declares its expected errors in: case name to the exact texts it prints.
34
- const EXPECTED: String = "GDHARNESS_EXPECTED_ERRORS"
30
+ ## The file to write what every suite declares it prints into, as JSON: each key of
31
+ ## [constant EXPECTED] holding the declarations keyed by suite path and then case name.
32
+ const EXPECTED_OUT: String = "--expected-out"
33
+ ## The constants a suite declares what it prints on purpose in, case name to the exact texts: its
34
+ ## engine errors, and its engine warnings.
35
+ const EXPECTED: Dictionary[String, String] = {
36
+ "errors": "GDHARNESS_EXPECTED_ERRORS",
37
+ "warnings": "GDHARNESS_EXPECTED_WARNINGS",
38
+ }
35
39
  ## The tool name gdUnit4 reads its options after.
36
40
  const TOOL: String = "GdUnitCmdTool.gd"
37
41
  ## How long a windowless engine sleeps after each frame. The engine's own default is the
@@ -217,18 +221,18 @@ static func argument_after(args: PackedStringArray, flag: String) -> String:
217
221
  return args[at + 1]
218
222
 
219
223
 
220
- ## The errors each of [param suites] declares it expects, by suite path and then case name, read off
221
- ## the compiled suite's constants so a declaration is whatever the engine made of it. A directory
224
+ ## What each of [param suites] declares in [param constant], by suite path and then case name, read
225
+ ## off the compiled suite's constants so a declaration is whatever the engine made of it. A directory
222
226
  ## listed is walked for its scripts, as gdUnit4 walks it for suites. Only a script whose source names
223
227
  ## the constant is loaded: gdUnit4 stops on a suite that does not load only when its own load is the
224
228
  ## one that fails, so a broken suite loaded here first let the rest of its directory run.
225
- static func expected_by_suite(suites: PackedStringArray) -> Dictionary:
229
+ static func expected_by_suite(suites: PackedStringArray, constant: String) -> Dictionary:
226
230
  var expected: Dictionary = {}
227
231
  for path: String in scripts_in(suites):
228
- if not FileAccess.file_exists(path) or not FileAccess.get_file_as_string(path).contains(EXPECTED):
232
+ if not FileAccess.file_exists(path) or not FileAccess.get_file_as_string(path).contains(constant):
229
233
  continue
230
234
  var suite: Script = load(path)
231
- var declared: Variant = suite.get_script_constant_map().get(EXPECTED)
235
+ var declared: Variant = suite.get_script_constant_map().get(constant)
232
236
  if declared is Dictionary:
233
237
  expected[path] = declared
234
238
  return expected
@@ -259,5 +263,8 @@ static func write_expected(path: String, suites: PackedStringArray) -> void:
259
263
  if file == null:
260
264
  push_error("Could not write the expected errors to %s: %s" % [path, FileAccess.get_open_error()])
261
265
  return
262
- var _stored: bool = file.store_string(JSON.stringify(expected_by_suite(suites)))
266
+ var expected: Dictionary = {}
267
+ for kind: String in EXPECTED:
268
+ expected[kind] = expected_by_suite(suites, EXPECTED[kind])
269
+ var _stored: bool = file.store_string(JSON.stringify(expected))
263
270
  file.close()