tests.gd 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. extends Node
  2. var _tests = [
  3. {
  4. "id": "Functional Tests/Shapes",
  5. "path": "res://tests/functional/test_shapes.tscn",
  6. },
  7. {
  8. "id": "Functional Tests/Box Stack",
  9. "path": "res://tests/functional/test_stack.tscn",
  10. },
  11. {
  12. "id": "Functional Tests/Box Pyramid",
  13. "path": "res://tests/functional/test_pyramid.tscn",
  14. },
  15. {
  16. "id": "Functional Tests/Collision Pairs",
  17. "path": "res://tests/functional/test_collision_pairs.tscn",
  18. },
  19. {
  20. "id": "Functional Tests/Character - Slopes",
  21. "path": "res://tests/functional/test_character_slopes.tscn",
  22. },
  23. {
  24. "id": "Functional Tests/Character - Tilemap",
  25. "path": "res://tests/functional/test_character_tilemap.tscn",
  26. },
  27. {
  28. "id": "Functional Tests/Character - Pixels",
  29. "path": "res://tests/functional/test_character_pixels.tscn",
  30. },
  31. {
  32. "id": "Functional Tests/One Way Collision",
  33. "path": "res://tests/functional/test_one_way_collision.tscn",
  34. },
  35. {
  36. "id": "Functional Tests/Joints",
  37. "path": "res://tests/functional/test_joints.tscn",
  38. },
  39. {
  40. "id": "Functional Tests/Raycasting",
  41. "path": "res://tests/functional/test_raycasting.tscn",
  42. },
  43. {
  44. "id": "Performance Tests/Broadphase",
  45. "path": "res://tests/performance/test_perf_broadphase.tscn",
  46. },
  47. {
  48. "id": "Performance Tests/Contacts",
  49. "path": "res://tests/performance/test_perf_contacts.tscn",
  50. },
  51. {
  52. "id": "Performance Tests/Contact Islands",
  53. "path": "res://tests/performance/test_perf_contact_islands.tscn",
  54. },
  55. ]
  56. func _ready():
  57. var test_menu = $TestsMenu
  58. for test in _tests:
  59. test_menu.add_test(test.id, test.path)