VUEngine-Studio icon indicating copy to clipboard operation
VUEngine-Studio copied to clipboard

Test Framework

Open KR155E opened this issue 2 years ago • 0 comments

Documenting a quick idea here for a framework for automated tests.

  • Allows to define any number of test cases
  • Each test consists of a sequence of button presses, waits and tests/checks
  • When you run a test, VES starts up the emulator (without user control) and sends the button presses to it
  • The test criteria could be to check certain values at certain offsets in RAM
  • Current emulator does not allow to access its inner state, so the only chance of testing on it would be screenshots and save data
  • Works primarily on an emulator, but could possibly (partially) work on a real Virtual Boy too by sending button presses through a BlueRetro adapter

-> Could/should possibly make use of the Tests API: https://code.visualstudio.com/api/references/vscode-api#tests

KR155E avatar Feb 07 '23 10:02 KR155E