Why am I getting `test view` in intellij when I cr...
# gradle
u
Why am I getting
test view
in intellij when I create a gradle run configuration and launch
check
task in it?
Run as test
is not checked..
c
the
check
task is a lifecycle task; it depends on various other tasks, including
test
which runs the tests; IntelliJ is picking up on that and showing the test results.
☝🏼 1
☝️ 1
u
yes but its slower which I'm not keen on - I know this for a fact since in my other project i have a custom test task and if I check
Run as test
its like 50% slower
s
If your only issue is the slowness then I would submit a bug report about that.. although it seems odd that IDEA could cause a slowdown on tests 🙂
v
Maybe you should check with profiling or build scan what makes it slower. Afair the option just makes sure the test tasks are never considered up-to-date and shows the "Run" tool window, but should not slow it more down than that the tests are all rerun always. But this is a topic for JetBrains support, not Gradle community. It is their software and their plugin. You can trick it though, for example by using
build -x assemble
or similar, because if
check
or
test
do not appear in the task names explicitly, this auto-detection does not trigger. That for
check
and
test
it is auto-triggered actually is a good thing, because the test-result display in the "Run" tool window is much better than just the output in the "Build" tool window. But maybe there should still be an explicit way to prevent that.