Kotlin: The Next Frontier in Metaprogramming
summary
Generates runnable UI tests for TornadoFX by parsing source with cast tree and the Kotlin PSI, building directed graphs of views and functions, and emitting TestFX scripts; AST-based locator avoids image ML and supports runtime-inserted randomized IDs. Project runs on the JVM, takes months of iterative work (three to five months for the parser phase), is open-source with a mapping-nodes branch, and currently produces simple click/write/verify tests while compositional state-checking remains in progress.
AI-written summary · about
chapters (32)
- 0:00Intro
- 0:50User Interfaces
- 1:26TornadoFX
- 3:33What makes a good UI test
- 4:00TornadoFX Suite
- 4:31UI Testing
- 7:05CastTree
- 8:44Evaluation Console
- 10:01UI Nodes
- 11:08UI Hierarchy
- 11:45Grabbing Views
- 11:59Generating Tests
- 13:18Nodes
- 14:01Testing
- 17:10Abstract Compositional Contracting
- 17:54UI Node Analysis
- 20:05Functional Composition
- 21:09Cat Person Editor
- 22:26Abstract Representations
- 27:46Future Plans
- 31:27Mapping Nodes
- 33:16Questions
- 33:40Mapping UI
- 34:29View Hierarchy
- 35:30AST Parser
- 36:31Kotlin Extensions
- 37:33Using Kotlin with the JVM
- 40:42Did you consider using Kotlin
- 41:15What stopped you
- 43:53Generating IDs
- 46:23Creating random strings
- 47:58Headless tests
related talks
50mKotlin: The Next Frontier in Metaprogramming
41mKotlin and TornadoFX: The Next Frontier in Modern (Meta)Programming
37mDesktop Development with TornadoFX
41mTesting in Kotlin: The Holy Grail of Readability and Power
45mKotlin for Science
45mFrontend Kotlin from the Trenches
41mKotlin for the JVM and beyond
17mMultiplatform Testing in Kotlin
