Intellij idea 2024.3.5 impossible to find groovy test in default package

Answered

Me and me colleague have same idea version but when we import same maven project and launch tests (groovy) in some module he got error that no tests are available in default package. This errored behaviour is not present when he start tests for other modules.   If i perform same operations all is ok so we can say it is an idea problem not application one (pom.xml or…)

Can you give me some help?

We have already check configurations looking for differences, he removed .cache, removed .idea and .iml from project directory but he got always same behaviour.

Thanks

0
3 comments

Please check if below points have been covered:

  • Verify module SDK/Language level: Project Structure > Modules > [the module] > Dependencies. Make sure the same JDK is selected on both machines and matches your build.
  • Ensure the module’s Test Sources are marked correctly: Right-click test folder (e.g., src/test/groovy) > Mark Directory as > Test Sources Root.
  • Check the Run Configuration test kind:
    • If using “All in package” with empty package, try specifying the actual package name.
    • Prefer “All in directory” pointing to src/test/groovy for the module.
    • Or “Pattern”/“Class” if applicable.
  • Confirm Groovy test framework detection:
    • If using Spock/JUnit 4/5, ensure the same versions exist in the module’s test scope and are resolved on his machine.
    • Reimport Maven, then Build > Rebuild Project.

 

0

Hi Bond Han, thanks a lot for your help. 

My colleague applied suggestions but no way. 

I would like to reset his situation; we both installed intellij on opensuse manually from tar.gz under /opt/idea24.3.5 dir.

So i would

1) remove local and tmp dirs (can  you suggest full list?)

Is this enough?

https://www.jetbrains.com/help/idea/2024.3/uninstall.html#standalone

 

1) remove his installation dir /opt/idea24.3.5 and re-extract original idea  tar.gz (i suppose   that copying my /opt/idea24.3.5 should be a bad idea)

Br

0
That is strange. All local cache and configurations are saved in system directory and configuration directory.

https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html

Restoring back to default is also one way to try: File | Manage IDE Settings | Restore Default Settings(Backup first if needed)
0

Please sign in to leave a comment.