Tests Runner in Gradle project

Answered

After upgrade from 2021.1.3 to 2021.2.1 the Runner windows changed from running tests to running task. Is there a way how to change it back ? I cannot find it at all.

0
6 comments

For quite some time IDE now uses Gradle by default when building and for running applications and tests. You can choose between Platform (IntelliJ IDEA) and Gradle's own runner in these settings:

0

I tried to change it but result is the same - Run tasks. In old version I had Gradle option set and I can saw "Running tests" in runner window. 

0

Please try to delete existing Run Configuration, then Reload project in Gradle tool window and run tests again.

If problem remains it wold be great to get a sample project to investigate and IDE logs after reproducing (Help | Collect Logs and Diagnostic Data action). 

For uploading you can use https://uploads.jetbrains.com or any file sharing service. Thank you.

0

I tried delete old configuration and problem stayed. Also I found another one. There is strictly defined tasks and arguments. But we are using our own custom arguments. In old Idea it works perfectly. I did not find it before because our custom arguments were imported during Idea upgrade.

test aggregate reports -Ptags="@CPT-640" -P_tags="@mytest" -P_sxHostIP=192.168.128.3 -PsxHostIP=192.168.130.107 -PraspiIP=192.168.130.118 -PsxWebUser=expert -PsxWebPassword="expert" -PsxWebLanguage=en -PsxWebRole=service -PsxSystemUser=root -PsxSystemPassword="DWS" -PsxHostProtocol=http -PodgLocalZnr=12 -PodgLocalFnr=9999 -PodgTargetFnr=7777 

Now it is impossible to use it. Really this way was much better:

Also I found one difference in file workspace.xml file. If I  restore backup of this file all start work well in new Idea.

New Idea. Runinng tasks are showed

All OK (old Idea) Running test are visible:

0

Thank you for the information! Filled the https://youtrack.jetbrains.com/issue/IDEA-277336 issue for this. Please vote and follow it in YouTrack.

>There is strictly defined tasks and arguments. But we are using our own custom arguments. In old Idea it works perfectly.

>Now it is impossible to use it.

Could you please clarify what is not possible now? If it is not related to the initial problem you described it would be really nice if you described it in a separate issue in YouTrack, so not to mix all in one thread and for easier addressing each problem. Thank you!

0

Many thanks for your help. I will create new issue as for the arguments problem.

0

Please sign in to leave a comment.