Kotlin: The Next Frontier in Metaprogramming
summary
Kotlin codebase analyzer that parses TornadoFX projects with an AST wrapper cast tree and a small JSON-backed digraph to detect interactive nodes, generate runnable TestFX scripts and inject random IDs at runtime. Prototype took months, handles buttons and text fields, uses jisan for deep PSI traversal, and outputs simple click/type/assert tests but currently cannot infer many expected post‑interaction states. Project is open source, branch mapping nodes, one contributor and a CI PR in flight.
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
45mKotlin for Science
41mKotlin/JS, Today and Tomorrow
52mKotlin for Java Programmers
31mKotlin beyond Android
39mA TypeScript Fan's KotlinJS Adventures
