Drew Heavner
03/16/2022, 2:24 PMralf
03/16/2022, 4:02 PMcompiler-utils
artifact:
testImplementation testFixtures(project(":compiler-utils"))
(replace the project with the artifact from maven central).
And then you can call compileAnvil
to test arbitrary code. Your custom code generators should be called as well. A sample is here: https://github.com/square/anvil/blob/main/integration-tests/code-generator/src/test/java/com/squareup/anvil/test/TestCodeGeneratorTest.ktDrew Heavner
03/16/2022, 5:00 PM