No test methods found for execution

80 views
Skip to first unread message

jtyd...@gmail.com

unread,
Apr 30, 2021, 7:52:26 AM4/30/21
to Illuminated Cloud Q&A
Hello All,

I am running into an issue where tests that exist on the server (and can be run there) are not found by IC2 to run. There does appear to be an error in the idea.log, but I am not certain that it's something I can resolve.

I have an idea.log which I will email to Scott separately, but the relevant bit seems to be:

2021-04-30 06:43:11,875 [3587181]  ERROR - ner.GeneralTestEventsProcessor - WebStorm 2021.1  Build #WS-211.6693.108 
2021-04-30 06:43:11,875 [3587181]  ERROR - ner.GeneralTestEventsProcessor - JDK: 11.0.10; VM: Dynamic Code Evolution 64-Bit Server VM; Vendor: JetBrains s.r.o. 
2021-04-30 06:43:11,875 [3587181]  ERROR - ner.GeneralTestEventsProcessor - OS: Windows 10 
2021-04-30 06:43:11,876 [3587182]  ERROR - ner.GeneralTestEventsProcessor - Plugin to blame: Illuminated Cloud 2 version: 2.1.7.3 
2021-04-30 06:43:11,876 [3587182]  ERROR - ner.GeneralTestEventsProcessor - Last Action: Rerun 
2021-04-30 06:43:22,094 [3597400]   INFO - rationStore.ComponentStoreImpl - Saving appFileTypeManager took 13 ms 
2021-04-30 06:43:30,357 [3605663]   WARN - .ApexUnitTestRunProcessHandler - No test class found for Cases_T. 
2021-04-30 06:43:30,357 [3605663]   WARN - .ApexUnitTestRunProcessHandler - No test methods found for execution. 
2021-04-30 06:43:30,400 [3605706]  ERROR - ner.GeneralTestEventsProcessor - [Apex]: Illegal nodeId: TestOutputEvent{name='Cases_T', id='0', text='No test methods found for execution.', outputType=stdout} 
java.lang.Throwable: [Apex]: Illegal nodeId: TestOutputEvent{name='Cases_T', id='0', text='No test methods found for execution.', outputType=stdout}
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:161)
at com.intellij.execution.testframework.sm.runner.GeneralTestEventsProcessor.logProblem(GeneralTestEventsProcessor.java:372)
at com.intellij.execution.testframework.sm.runner.GeneralTestEventsProcessor.logProblem(GeneralTestEventsProcessor.java:358)
at com.intellij.execution.testframework.sm.runner.GeneralIdBasedToSMTRunnerEventsConvertor.validateAndGetNodeId(GeneralIdBasedToSMTRunnerEventsConvertor.java:376)
at com.intellij.execution.testframework.sm.runner.GeneralIdBasedToSMTRunnerEventsConvertor.findNode(GeneralIdBasedToSMTRunnerEventsConvertor.java:382)
at com.intellij.execution.testframework.sm.runner.GeneralIdBasedToSMTRunnerEventsConvertor.onTestOutput(GeneralIdBasedToSMTRunnerEventsConvertor.java:357)
at com.intellij.execution.testframework.sm.runner.OutputToGeneralTestEventsConverter.fireOnTestOutput(OutputToGeneralTestEventsConverter.java:255)
at com.intellij.execution.testframework.sm.runner.OutputToGeneralTestEventsConverter$MyServiceMessageVisitor.visitTestStdOut(OutputToGeneralTestEventsConverter.java:452)
at jetbrains.buildServer.messages.serviceMessages.TestStdOut.visit(TestStdOut.java:37)
at com.intellij.execution.testframework.sm.runner.OutputToGeneralTestEventsConverter.processServiceMessage(OutputToGeneralTestEventsConverter.java:135)
at com.intellij.execution.testframework.sm.runner.OutputToGeneralTestEventsConverter.processServiceMessages(OutputToGeneralTestEventsConverter.java:129)
at com.intellij.execution.testframework.sm.runner.OutputToGeneralTestEventsConverter.processConsistentText(OutputToGeneralTestEventsConverter.java:113)
at com.intellij.execution.testframework.sm.runner.OutputToGeneralTestEventsConverter$1.onTextAvailable(OutputToGeneralTestEventsConverter.java:69)
at com.intellij.execution.testframework.sm.runner.OutputEventSplitter.flushInternal(OutputEventSplitter.kt:167)
at com.intellij.execution.testframework.sm.runner.OutputEventSplitter.flushInternal$default(OutputEventSplitter.kt:152)
at com.intellij.execution.testframework.sm.runner.OutputEventSplitter.processInternal(OutputEventSplitter.kt:98)
at com.intellij.execution.testframework.sm.runner.OutputEventSplitter.process(OutputEventSplitter.kt:72)
at com.intellij.execution.testframework.sm.runner.OutputToGeneralTestEventsConverter.process(OutputToGeneralTestEventsConverter.java:95)
at com.intellij.execution.testframework.sm.SMTestRunnerConnectionUtil$2.onTextAvailable(SMTestRunnerConnectionUtil.java:218)
at jdk.internal.reflect.GeneratedMethodAccessor139.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:246)
at com.sun.proxy.$Proxy44.onTextAvailable(Unknown Source)
at com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:220)
at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunProcessHandler.lambda$testStdOut$18(SourceFile:1961)
at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:218)
at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:21)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:200)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:781)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:319)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:84)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:133)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:189)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:969)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:839)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:449)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:808)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:781)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Jim Young

unread,
Apr 30, 2021, 7:54:31 AM4/30/21
to Illuminated Cloud Q&A, jtyd...@gmail.com
One additional note - it's not ALL classes that have the problem, seemingly just this one.

Phil W-S

unread,
Apr 30, 2021, 7:56:39 AM4/30/21
to Illuminated Cloud Q&A, Jim Young, jtyd...@gmail.com
Usual reason for this is an out-of-date OST (Offline Symbol Table). Worst case scenario, re-build the whole OST and cache.

Jim Young

unread,
Apr 30, 2021, 8:13:44 AM4/30/21
to Illuminated Cloud Q&A, Phil W-S, Jim Young, jtyd...@gmail.com
It's a good call Phil, I did try that first (complete rebuild, complete reindex) and still no joy.

Scott

unread,
Apr 30, 2021, 10:21:53 AM4/30/21
to Illuminated Cloud Q&A, Jim Young, Phil W-S, jtyd...@gmail.com
Jim, I scanned your log. Since you're on 2021.1, let's at least start with a full cache/index reset given the known indexing issues in that release:


My guess is that it won't resolve the problem, but since there's a non-zero (and frankly, non-trivial) chance a stale base IDE index could be coming into play here, let's rule that out one way or the other. Assuming that doesn't resolve it, please reproduce again (re-reproduce?) with debug logging enabled for unit testing and send over the latest logs for review.

Regards,
Scott Wells

Reply all
Reply to author
Forward
Message has been deleted
0 new messages