tests.gd 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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/Compound Shapes",
  9. "path": "res://tests/functional/test_compound_shapes.tscn",
  10. },
  11. {
  12. "id": "Functional Tests/Friction",
  13. "path": "res://tests/functional/test_friction.tscn",
  14. },
  15. {
  16. "id": "Functional Tests/Box Stack",
  17. "path": "res://tests/functional/test_stack.tscn",
  18. },
  19. {
  20. "id": "Functional Tests/Box Pyramid",
  21. "path": "res://tests/functional/test_pyramid.tscn",
  22. },
  23. {
  24. "id": "Functional Tests/Collision Pairs",
  25. "path": "res://tests/functional/test_collision_pairs.tscn",
  26. },
  27. {
  28. "id": "Functional Tests/Joints",
  29. "path": "res://tests/functional/test_joints.tscn",
  30. },
  31. {
  32. "id": "Functional Tests/Raycasting",
  33. "path": "res://tests/functional/test_raycasting.tscn",
  34. },
  35. {
  36. "id": "Functional Tests/RigidBody Impact",
  37. "path": "res://tests/functional/test_rigidbody_impact.tscn",
  38. },
  39. {
  40. "id": "Functional Tests/RigidBody Ground Check",
  41. "path": "res://tests/functional/test_rigidbody_ground_check.tscn",
  42. },
  43. {
  44. "id": "Functional Tests/Moving Platform",
  45. "path": "res://tests/functional/test_moving_platform.tscn",
  46. },
  47. {
  48. "id": "Performance Tests/Broadphase",
  49. "path": "res://tests/performance/test_perf_broadphase.tscn",
  50. },
  51. {
  52. "id": "Performance Tests/Contacts",
  53. "path": "res://tests/performance/test_perf_contacts.tscn",
  54. },
  55. {
  56. "id": "Performance Tests/Contact Islands",
  57. "path": "res://tests/performance/test_perf_contact_islands.tscn",
  58. },
  59. ]
  60. func _ready():
  61. var test_menu = $TestsMenu
  62. for test in _tests:
  63. test_menu.add_test(test.id, test.path)