Hey Colvin,

Changing the "Run tests using" setting to "IntelliJ IDEA" is the main
way I know of to tackle the long startup time for tests.  (For those
that might be unfamiliar, the full path in my version of IntelliJ at
least is: "Settings" -> "Build, Execution, Deployment" -> "Build
Tools" -> "Gradle" -> "Run tests using")

That said - toggling the settings has always "just worked" in my
environment (MacOS, IDEA 2023.2.1, OpenJDK Java 21.0.5). I haven't hit
any of those additional hurdles you mentioned.

Maybe it's something particular to your IntelliJ or Java version?  If
you share those maybe that'd help someone either reproduce or offer a
workaround?

Best,

Jason

On Mon, Apr 7, 2025 at 7:48 AM Colvin Cowie <colvin.cowie....@gmail.com> wrote:
>
> Hello all,
>
> While writing smoke tests for the v2 API I've noticed that the spin up time
> of the tests in intellij with gradle is quite slow, making it hard to
> iterate rapidly. Even without making any changes, there's about 30-40
> seconds of gradle build before they start running. And it's maybe double
> that with changes just to the tests themselves. I'm running on a *reasonable
> *Lenovo P50 (i7-6820HQ,32GB, M.2 SSD) though it is a bit old.
>
> I see a similar thread was raised on the Lucene list last year, with one
> suggested improvement being to use IntelliJ (really it's the Eclipse
> Compiler) to build and run rather than Gradle.
> https://lists.apache.org/thread/9j4s4wqftlbst640z5zzgsddwmqgondj
>
> That does seem to make it a bit faster (down to 10-20 seconds). But in
> order to make it work on main I had to manually download the latest ECJ and
> point at it (
> https://youtrack.jetbrains.com/issue/IDEA-355457/Update-Eclipse-ECJ-compiler),
> and also had to add an extra dependency for the commons logger in Core
> because IntelliJ didn't resolve it itself. So that's not an ideal solution.
>
> Does everyone else have the same experience with running things from
> intellij? Any tips to improve it?
>
> Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@solr.apache.org
For additional commands, e-mail: dev-h...@solr.apache.org

Reply via email to