PHP Unit test terminated?
I setup my configuration and not is all I am getting is 'Process finished with exit code 0'. The pane on the far left with columns labeled Test, Time Elapsed, and Results only shows the location of the test (in the Test column) and "<TERMINATED>" in the Time Elapsed column. Any ideas on how I get more information on why it didn't even run?
Please sign in to leave a comment.
Any ideas on this. I am not sure why my tests all of a sudden stopped working.
No real idea.
I may only suggest to:
Any update after the log and screenshot that was sent?
Sorry, but I have not clue what you are talking about.
Sorry. I sent you the attachments through email I guess you didn't get them. The .php file is the tests. The idea.log is the log file. The rest of the jpg files are screen shots of the tests and my configurations. Thank you.
Attachment(s):
unitconfigure.jpg
WebApiExternalAccessClientTest.php.zip
unittest.jpg
idea.log.zip
unittest (1).jpg
Well...
1) I do not remember giving you my email address (but I think I left it once or twice on this forum)
2) Even if I did .. I have not received anything
3) I do not work for JetBrains
4) But I have looked at your screenshots/logs and found nothing that would explain what execution is interrupted (as to my level of PHPUnit/PhpStorm integration knowledge, of course)
My only suggestiongs right now would be:
1) See what will happen if instead of "Run" you hit "Debug" button -- this may give you info on where termination occurs (what line) and some ideas of why it may be happening.
2) Better submit a ticket to the Issue Tracker -- if you provide some standalone working project they could investigate it deeper.
I sent the email to "Andriy Bazanov" <devnet@jetbrains.com>, which is the "from" address on the email that I received with your comments.
"Debug" unit tests result in the same symptoms.
Since I don't know what caused it I also don't know how to recreate it. I will file a bug report with the screen shots and log reports that I gave you.
Thank you.
I see. That's a generic email address used to send all notifications from this forum. I see the same for your messages: Kevin Burton <devnet@jetbrains.com>. I doubt anyone is checking this mail box.
Did you setup breakpoints anywhere in your test ... or you run it without them. If 2nd then it is indeed makes no difference to "Run".
The idea was to step trough each method of your code to locate the line that halts the execution.
Hey, I have got the same error message, knowing that
- I am in Docker connexion.
- I ue remote PHP docker interpreter.
- My unit tests work fine in CLI
- I am on Phpstrom 2018.1
Logs from .dea.log:
```
2018-04-29 20:31:37,691 [2717280] ERROR - ht.daemon.impl.LineMarkersPass - PhpStorm 2018.1 Build #PS-181.4203.565
2018-04-29 20:31:37,691 [2717280] ERROR - ht.daemon.impl.LineMarkersPass - JDK: 1.8.0_152-release
2018-04-29 20:31:37,691 [2717280] ERROR - ht.daemon.impl.LineMarkersPass - VM: OpenJDK 64-Bit Server VM
2018-04-29 20:31:37,691 [2717280] ERROR - ht.daemon.impl.LineMarkersPass - Vendor: JetBrains s.r.o
2018-04-29 20:31:37,691 [2717280] ERROR - ht.daemon.impl.LineMarkersPass - OS: Linux
2018-04-29 20:31:37,691 [2717280] ERROR - ht.daemon.impl.LineMarkersPass - Last Action: Stop
2018-04-29 20:31:37,692 [2717281] ERROR - ht.daemon.impl.LineMarkersPass - Calling invokeAndWait from read-action leads to possible deadlock.
java.lang.IllegalStateException: Calling invokeAndWait from read-action leads to possible deadlock.
at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:648)
at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:656)
at com.intellij.docker.compose.configuration.beans.DockerComposeConfigurationParser.saveDockerComposeFile(DockerComposeConfigurationParser.java:78)
at com.intellij.docker.compose.configuration.beans.DockerComposeConfigurationParser.parseBean(DockerComposeConfigurationParser.java:63)
at com.jetbrains.php.remote.docker.PhpDockerComposePathMappingsProvider$DockerComposeMappingsCollector.parse(PhpDockerComposePathMappingsProvider.java:238)
at com.jetbrains.php.remote.docker.PhpDockerComposePathMappingsProvider$DockerComposeMappingsCollector.collect(PhpDockerComposePathMappingsProvider.java:199)
at com.jetbrains.php.remote.docker.PhpDockerComposePathMappingsProvider.getPathMappingSettings(PhpDockerComposePathMappingsProvider.java:78)
at com.jetbrains.php.remote.PhpRemoteInterpreterManagerImpl.createPathMappings(PhpRemoteInterpreterManagerImpl.java:216)
at com.jetbrains.php.remote.PhpRemoteInterpreterManagerImpl.createPathMapper(PhpRemoteInterpreterManagerImpl.java:129)
at com.jetbrains.php.phpunit.PhpUnitTestRunLineMarkerProvider.createPathMapper(PhpUnitTestRunLineMarkerProvider.java:68)
at com.jetbrains.php.phpunit.PhpUnitTestRunLineMarkerProvider.getFilePathDeploymentAware(PhpUnitTestRunLineMarkerProvider.java:58)
at com.jetbrains.php.phpunit.PhpUnitTestRunLineMarkerProvider.getLocationHint(PhpUnitTestRunLineMarkerProvider.java:52)
at com.jetbrains.php.phpunit.PhpUnitTestRunLineMarkerProvider.getLocationHint(PhpUnitTestRunLineMarkerProvider.java:77)
at com.jetbrains.php.phpunit.PhpUnitTestRunLineMarkerProvider.getInfo(PhpUnitTestRunLineMarkerProvider.java:36)
at com.intellij.execution.lineMarker.RunLineMarkerProvider.getLineMarkerInfo(RunLineMarkerProvider.java:60)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.a(LineMarkersPass.java:186)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.a(LineMarkersPass.java:116)
at com.intellij.codeInsight.daemon.impl.Divider.divideInsideAndOutsideInOneRoot(Divider.java:80)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation(LineMarkersPass.java:103)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.c(PassExecutorService.java:437)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1134)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.b(PassExecutorService.java:430)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.d(PassExecutorService.java:429)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:405)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:143)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:218)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:403)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:170)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
```
@Ajax13 Is there anything else in the log? Best would be to contact support via https://intellij-support.jetbrains.com/hc/en-us/requests/new?ticket_form_id=66731 and troubleshoot this directly with the team.