Yes, you can just call project.evalute(). If you are writing your tests in type-checked manner don’t forget to cast to ProjectInternal. As mentioned, it’s a bit nasty, but realistically, the use of afterEvaluate { } is ubiquitous and unavoidable in many cases so at least using evaluate() you can test that code w/o resorting to an integration test.
↧
ProjectBuilder and Project#afterEvaluate hooks
↧