Test Runner tab in IntelliJ 2018.3 CE not showing - java

I'm using IntelliJ 2018.3 CE. I have a java maven project (developed using springboot) in which the JUnit tests have already been written. However, when I try to run the tests, the output is always shown in the default run window, and NOT in the Test Runner Tab. In fact, I cannot make this window pop-up after a running a test.
I have Junit 4.12 in the external libraries of my project (as Maven: junit:junit:4.12). The test folders have been appropriately flagged as test resources.
I presume it has to deal with settings in IntelliJ but even with all the effort in the world, I wasn't able to find what is causing this.
Is someone experiencing the same issue? Or does someone know how to resolve this?
Any help would be very much appreciated.

Related

How to configure Intellij code coverage for jar in library

I am attempting to generate code coverage for a jar that is in my library. I have a suite of tests that uses this jar and I would like to see how much coverage I am getting with my test suite. In Intellij's run/configuration menu, even if I manually specify to include all the classes in the jar, ex. "com.my.jar.*", I get 0% code coverage. In Eclipse, I was able to easily select the jar, hit 'Coverage', and get accurate results. Has anyone else converting to Intellij from Eclipse experienced the same issue?
I got stuck on this too - I was able to get it working in Eclipse instead of Idea

Spring Tools Suite shows plenty of errors in all projects out of nowhere

Today i'm launching Spring Tools Suite and all my project show errors. Majority of them are "x cannot be resolved to a type". I can ignore them and launch program and it works, but i suppose such things shouldn't happen. I have copy of them, but i want to know what is the source of the issue and how to fix it if it's possible.
The only things i have changed lately in STS was installing Window Builder and Maven, but i doubt any of it should make problems. Actually only 2 projects don't show errors - both use Maven and one uses Window Builder.

Can IntelliJ Idea work with maven-failsafe-plugin tests?

According to the maven-failsafe-plugin's convention. integration tests need to be placed under src/it. This is all fine and dandy, but IntelliJ Idea doesn't:
Treat the code in src/it as test code
Let you run these tests through the UI
I have 2017.1.3 and I have also installed the Maven Test Support Plugin. Doesn't Idea support this kind of separation?

Run intellij IDEA plugin from Main method

I want to force developers to run findbugs plugin for their business class before commit them . now want solution to run findbugs plugin from code but I cannot find any solution to access intellij idea plugin from code.
Can any body help me?
It's not possible to run the findbugs IntelliJ IDEA plugin from your main() method, because IntelliJ IDEA plugins can only run in an IntelliJ IDEA instance.
However, findbugs is also available as a standalone tool, which you can very easily run from the command line, as described in the documentation.

JUnit Could not launch the JUnit plug-in tests. why?

First time I am trying Junit and I am following below link:
http://www.vogella.de/articles/JUnit/article.html
When I run my testClass as Run-As-> Junit Test. It says below thing.
Please help me in figure it out.
Could not launch the JUnit plug-in tests because project 'SalesTax'
is not a plug-in project.
SalesTax: Is the Project Name
I suspect you did create an Eclipse 'jUnit Plugin Test' launch configuration which is designed to run Eclipse plugins jUnit tests (in some kind of mocked eclipse environment).
Try to create a simple 'jUnit' launch configuration instead.
Suggestion - Follow the tutorial. type in the (3-line) example "MyClassTest" from the tutorial. Verify that you can get the tutorial working. Post back with any questions about the tutorial.
Once you get one complete example working, end-to-end (your code, your JUnit test code, and successfully building and executing at least one JUnit test in your IDE), then try to get your "SalesTax" project working.
Q: I presume you're using Eclipse, correct? Eclipse 3.7?
PS:
Here's another good tutorial:
http://www.ibm.com/developerworks/java/tutorials/j-junit4/

Categories