Log inGet started
Package

styleRoles.testSuite

README.md

styleRoles tests

Checks what the package promises: all seven sets for a kind of look and all seven for a kind of game ship every one of the sixteen roles with values in range; StyleRoles.use switches a whole game to a set in one change and replaces the last set's variant lines with its own; give and of give one thing a role and read it back through the scene's set (switching the set changes what the thing gets with no change to the thing); two blocks share the line slot by variant, one drawn only on the player and one only on the enemies, checked on the presented frame (and swapped back by swapping their variants); and an author's own set written with extends: keeps every role of the set it extends and changes only what it writes. It leaves the scene alone: the stack is saved first and put back when the suite ends, and the objects and the test set it makes are temporary. Run it with asset.resolve("styleRoles.tests.styleRoles", "testSuite"):run().

Known limits

  • Frame tests read the presented frame, so a run needs a drawn view, and a busy machine moves the timing checks (#24548).
  • A two-client editor sometimes refuses to load two different scenes at once (#24666, #24667).
  • The web build was not checked from here (#20946).

The package README's Known limits lists the rest.