Exception: VmaTestFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/vimamsa/test_framework.rb

Overview

VmaTest — integration test base class

Tests run inside the live GTK app (headless or normal) after vma.start. Each test method gets a fresh empty buffer.

Two ways to drive the editor:

act(:action_name)         — execute a registered action directly
act("buf.insert_txt(…)")  — eval a string action
keys("i h e l l o esc")  — simulate a space-separated key sequence

Assertions raise VmaTestFailure on mismatch (caught by the runner).

Usage:

Run all tests:  run_vma_tests
Run one class:  run_vma_tests(MyTests)