CleverRaven/Cataclysm-DDA

Creating more AIM tests, help wanted

Open

#80,000 创建于 2025年3月4日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)C++ (9,264 star) (3,991 fork)batch import
<Suggestion / Discussion>Code: TestsHelp Wanted

描述

Is your feature request related to a problem? Please describe.

AIM is a pain to work on, with tons of special cases depending on type of source -, destpanel/charge items and a bunch of pre-filtering, so that any attempt to improve anything, it will break something. Automated testing would make the process a lot more stable, but since it is closely interwoven with UI and key-inputs it hasn't been done this far.

Solution you would like.

AIM has a lot of functions, so there will have to be a ton of tests, so I would like to recruit some help writing some tests, as soon as #79976 gets merged. An example test is in #79976. Only requirement is that you can compile the game.

  • Infrastructure to be able to test (#79976)
  • Navigation (selecting pane, swap pane etc.)

possible locations:

  • Inventory
  • Ground (all/9 specific locations)
  • Dragged
  • Vehicle (not dragged)
  • Container
  • Worn

Moving single/stack/set number of items:

  • anywhere to inv
  • anywhere to ground
  • anywhere to container
  • anywhere to vehicle
  • anywhere to dragged
  • anywhere to worn (also to wield)
  • items with charges

Other functionalities:

  • unload from Container view/container selected
  • Examine
  • move all

Describe alternatives you have considered.

No response

Additional context

Neat, it got the number 80000

贡献者指南