When writing tests from scratch or especially when migrating them from one JVM language to another (or even framework), the modern IDEs (especially IntelliJ IDEA) are very handy, as there are a lot of inspections out of the box. The thing is, sometimes, they are not enough or not suggesting idiomatic replacements.
In this talk, we are going to cover the following:
- Definition of idiomatic pattern of a library/framework/language
- Usage of structural search and replace in IntelliJ IDEA
- Creating inspections using structural search and replace
- Sharing your inspections with everyone
Examples will be demonstrated in Kotlin