run 'all tests in package' across whole project doesn't find all unit tests

Hi,

I have a project with modules+submodules in maven and imported all this in Intellij. This worked fine for a while, but now I have the peculiar problem that not all tests are found. I have +/- 2500 unit tests classes, and IntelliJ only finds 30 of them.
These 30 are sprinkled across all the modules, so it seems like it's not as if IntelliJ only 'sees' 1 module. Also, The classpath given when these 30 tests are started seems to contain all modules and their test directories.

When i change 'run test in package' to 'pattern', and use a pattern that should select all tests, it finds these same 30 classess...

Anybody any idea what migth be wrong or how to start root-causing this?

Regards,
Kim

7 comments

Hi Kim,

Please provide your idea.log file (main menu | help | show log).

Could you create a minimal but complete sample project which illustrates the problem and upload it here?

Denis

0

Something seems to be rotten in the state of Danmark:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2013-06-27 09:41:01,516 [1830071]  ERROR - stubs.StubProcessingHelperBase - IntelliJ IDEA 12.1.4  Build #IU-129.713
2013-06-27 09:41:01,517 [1830072]  ERROR - stubs.StubProcessingHelperBase - JDK: 1.7.0_25
2013-06-27 09:41:01,517 [1830072]  ERROR - stubs.StubProcessingHelperBase - VM: Java HotSpot(TM) 64-Bit Server VM
2013-06-27 09:41:01,517 [1830072]  ERROR - stubs.StubProcessingHelperBase - Vendor: Oracle Corporation
2013-06-27 09:41:01,517 [1830072]  ERROR - stubs.StubProcessingHelperBase - OS: Linux
2013-06-27 09:41:01,517 [1830072]  ERROR - stubs.StubProcessingHelperBase - Last Action: EditorDown
2013-06-27 09:41:17,566 [1846121]  ERROR - stubs.StubProcessingHelperBase - IdeaLoggingEvent[message=PSI and index do not match: PSI JSFile:26x_MigrationFinishedRunInfo.json, first stub PsiFileStubImpl, throwable=Please report the problem to JetBrains with the file attached]
java.lang.Throwable
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:54)
    at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:98)
    at com.intellij.psi.stubs.StubIndexImpl$2.perform(StubIndexImpl.java:243)
    at com.intellij.psi.stubs.StubIndexImpl$2.perform(StubIndexImpl.java:235)
    at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:60)
    at com.intellij.psi.stubs.StubIndexImpl.process(StubIndexImpl.java:235)
    at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:208)
    at com.intellij.psi.stubs.StubIndex.safeGet(StubIndex.java:65)
    at com.intellij.psi.impl.java.stubs.index.JavaFullClassNameIndex.get(JavaFullClassNameIndex.java:48)
    at com.intellij.psi.impl.file.impl.JavaFileManagerBase.a(JavaFileManagerBase.java:276)
    at com.intellij.psi.impl.file.impl.JavaFileManagerBase.findClass(JavaFileManagerBase.java:186)
    at com.intellij.psi.impl.JavaPsiFacadeImpl$PsiElementFinderImpl.findClass(JavaPsiFacadeImpl.java:281)
    at com.intellij.psi.impl.JavaPsiFacadeImpl.findClass(JavaPsiFacadeImpl.java:109)
    at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.b(PsiJavaCodeReferenceElementImpl.java:390)
    at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.access$000(PsiJavaCodeReferenceElementImpl.java:54)
    at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl$OurGenericsResolver.resolve(PsiJavaCodeReferenceElementImpl.java:325)
    at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl$OurGenericsResolver.resolve(PsiJavaCodeReferenceElementImpl.java:317)
    at com.intellij.psi.impl.source.resolve.ResolveCache$2.compute(ResolveCache.java:107)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:104)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:132)
    at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.multiResolve(PsiJavaCodeReferenceElementImpl.java:371)
    at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.advancedResolve(PsiJavaCodeReferenceElementImpl.java:345)
    at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.resolve(PsiJavaCodeReferenceElementImpl.java:314)
    at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.a(PostHighlightingPass.java:752)
    at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.a(PostHighlightingPass.java:293)
    at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.access$000(PostHighlightingPass.java:89)
    at com.intellij.codeInsight.daemon.impl.PostHighlightingPass$1.run(PostHighlightingPass.java:149)
    at com.intellij.codeInsight.daemon.impl.RefCountHolder.retrieveUnusedReferencesInfo(RefCountHolder.java:323)
    at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.doCollectInformation(PostHighlightingPass.java:146)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:62)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:357)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1182)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:348)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:226)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:345)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:321)
    at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:145)
    at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:142)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
    at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
    at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:113)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Creating a standalone sample project is currently not possible due to time constraints. Please let me know if you need anything else besides the log file.

Thanks!

Kim

0

Sorry but that error message relates to another problem.

Regarding your case (not running tests) I'm afraid we still need to be able to reproduce it locally :(

Denis

0

While we are trying to reproduce the problem: any idea how I can get rid of that other log message? It's logged *very* frequently.

Thanks,
Kim

0

That message looks like a bug, so, I'd suggest to follow the recommendation written at it error message - send target files to our support team (support@jetbrains.com), they will forward them to responsible developer.

Denis

0

Hi,

(Both) problems solved, seemd like the file caches were corrupt. Flushing the caches solved all my problems.

Tx,
Kim

0

Ok, thanks for the update

Denis

0

Please sign in to leave a comment.