IntelliJ Ultimate/PhpStorm, showing code coverage results for Symfony2 project - intellij-idea

I'm using IntelliJ Ultimate 11.1 which includes the goodies that comes with the latest PhpStorm.
I'm trying to get some things working with the new Code Coverage feature, but having a bit of trouble getting the coverage to show up in my IDE.
The unit testing is working 100%, I can even run the unit tests in debug mode, and trigger xdebug breakpoints etc, which I think is the most awesome thing since toast.
When I set --coverage-html the HTML coverage report is being generated ok, so it's clear that xdebug and phpunit are working nicely together.
The project is a Symfony2 project, which has it's PhpUnit configuration done in a file app/phpunit.xml.dist.
When I select Analyze > Show Code Coverage Data from the menu, I get a popup looking like this:
I'm clicking the [+] but not sure what I have to select, as the OK button on that dialog box is disabled all the time.
I understand that my Test Suite is defined inside the phpunit.xml.dist file, but not sure how to get IntelliJ to use that to figure out how to display code coverage.
I'd be really thrilled to be able to use this neat feature.

Please check the documentation:
To measure code coverage
Prepare tests manually or have test classes generated.
Create a run configuration of the type PHPUnit.
On the main toolbar, select the PHPUnit run configuration in the Run/Debug Configurations drop-down list and click the Run with Coverage button.
Monitor the code coverage in the Coverage tool window.
Do you use the Run with Coverage button?

I just ran a recent update, and everything started working perfectly!

Related

IntelliJ multi module test coverage

I am using IntelliJ IDEA 2022.1.2 (Ultimate Edition) for multiple services using Gradle and Spock testing. I can currently run each module test coverage just fine. But when I run one module/service, it removes the coverage for the previous testing.
Here is what I am trying:
Select each module in the Project view
Right click and select "Run Test.. with Coverage"
this creates a "whole project" configuration
When I try to run that configuration with coverage, I get the error:
I did try to use the modify options, but I noticed that the "whole project" configuration is in the JUnit section, even though I am using Gradle / Groovy /Spock. Here is a requested screenshot of the "Run Configuration":
I feel like there has to be a way to show a collective code coverage for the selected modules but so far my research hasn't helped.

How can I make IntelliJ default to a Jest configuration?

I have Create React App applications that I test with Jest. I've been using VSCode, but am now switching to IntelliJ. I'm wanting to duplicate the test run/debug behavior that I get in VSCode.
In VSCode, whenever I run or debug, in VSCode, a prompt comes up in the terminal asking which file, test, etc, that I would like to run. See first photo below. As of right now, I can run the tests in IntelliJ, but it doesn't ask me which tests I want to run.
Also, in IntelliJ, if I run a test file by itself, or a single test by itself, it seems to make a new configuration automatically, which I don't like.
I'd like to have just a single configuration for Jest and have any/all tests default to that configuration if possible.
Behavior in VSCode, that I'd like in inteliiJ

Intellij Idea not showing separate tests of a Suite when using scala test

When running a scala-test suite in Intellij Idea, it's supposed to show the breakup of the individual tests that it ran, as shown in screenshot below, as explained in scala-test Intellij guide.However when running scala-test in Intellij Idea Community Edition 2019.2, I can't see the breakup of individual tests. Only the aggregated result is shown. How do I fix it to show the individual tests?
Expected test breakup in IntellijIdea when running scala-test
Actual IntellijIdea output on running scala-test. The individual tests are not shown
Does it solves the issue when you enable "Show Passed" option in runner tab?

Intellij IDEA - run all unit tests before launching the application with a single click

always before launching my app I'm running all the unit tests to make sure there is no regression. So I have two separate tasks and run all tests, and then I launch the app.
I'm curious if there is any option of setting the configuration this way that I click "Run" button, and it invokes build, tests and launch?
Thanks!
IntelliJ IDEA provides Compound Run/Debug configurations exactly for that:
Use this dialog box to create configurations containing multiple run/debug configurations that you can launch at once. This is useful, for example, if you want to launch various automated tests and get test results in one window.

Intellij complains about fork mode when running tests with code cover

I want to get information about how much the tests cover in our application. When I try to run all tests with coverage Intellij complains about the current fork mode. See image below.
The strange thing is that in the selected Run/Debug Configuration that I have the Fork mode is already set to none. Intellij still encourage me to change the Fork mode to none.
I am using Intellij 13.0.1, this is a feature that have been around for long, so I am missing something obvious, right?
Does anyone know what the problem might be?
IDEA-118572 unable to run JUnit tests with code coverage - fork mode is required