How to write automated unit tests for java annotation processor?

前端 未结 6 1351
遇见更好的自我
遇见更好的自我 2021-01-31 09:24

I\'m experimenting with java annotation processors. I\'m able to write integration tests using the \"JavaCompiler\" (in fact I\'m using \"hickory\" at the moment). I can run the

6条回答
  •  长发绾君心
    2021-01-31 09:57

    An option is to bundle all tests in one class. Half a second for compiling etc. is then a constant for a given set of tests, the real test time for a test is negligible, I assume.

提交回复
热议问题