All Questions
21
questions
0
votes
0
answers
202
views
Proper structure and run configurations for a Spring Boot maven project using JUnit and Cucumber
I am building a Spring Boot API as a maven project which is structured like this:
main-project-folder/
- pom.xml
- api-module/
- pom.xml
- src/
- main/: models, controllers, JPA ...
0
votes
1
answer
189
views
Intellij idea doesn't run unit tests
I'm working on a spring boot project and until recently it was fine but now i can't run unit tests. It gives the error:
'int org.jvnet.winp.Native.setPriority(int, int)'
I've searched but found ...
1
vote
0
answers
241
views
Problem when measuring IntelliJ Spring Boot Test Coverage on multi module project
In my case, I run my whole multi-module test on IntelliJ like this:
The test works as intended, but there is a problem with measuring the test coverage.
If I run "Run With Coverage", only ...
0
votes
1
answer
512
views
Intellij unit test finishes with exit code -1
All unit tests are terminated with this message. I have tried many things including invalidating caches, reinstalling intellij, re-cloning project from vcs, reloading .m2 folder.
I have also checked ...
1
vote
2
answers
847
views
IntelliJ can't find installed packages
I've just installed IntelliJ and imported a Maven / Spring Boot project. I've set up my run configuration as "application", but when I try to run it, it fails and complains of not being ...
0
votes
2
answers
681
views
Could not find Spring Profile when uses JUnit Runner in IDEA
I'm trying to run a JUnit Test in IntelliJ IDEA, but the Runner could not find the Spring Profile.
this message is displayed in the log:
--spring.profiles.active=dev
but right after:
Could not find ...
0
votes
1
answer
409
views
Not test found with gradle and intellij only when press rerun failed tests
When I run a test and the test fail and I press the button Rerun failed tests I get the following error Test events where not received No tests found for given includes, but is weird because the test ...
0
votes
1
answer
225
views
JUnit 5 test case result not reflecting even changed the logic
I am trying to use junit5 in spring-boot application in intelliJ IDE. I am getting issue in not reflecting result of junit test when I run it individual. while I run using mvn clean install command, ...
0
votes
1
answer
499
views
IntelliJ does not refresh Spring autoconfigurations in multi-module tests when running all tests
I have a multi-module Maven project with three modules A,B,C, all of them are Spring-Boot modules.
B is an autoconfiguration class, uses A. It has a conditional on a certain bean.
C is also an ...
0
votes
1
answer
6k
views
All tests get terminated in Intellij with Spring Boot and JUnit5
I was trying to write a simple test in my Spring boot app with JUnit5 and I notice that all of my tests get instanly terminated. I downloaded some unit testing example and it worked just fine so I don'...
0
votes
1
answer
2k
views
how execute and show friendly tests output when running gradle from command line
I can run easily my project tests from IntelliJ IDEA but I am struggling to run them and see the results running from command line.
I read several suggestions around and it seems the trick part is ...
-1
votes
1
answer
97
views
Different test results when project is built in Eclipse
I have a Spring rest endpoint JUnit test and sometimes I find a strange problem.
When I use Eclipse my test doesn't want to pass. It fails with the following message:
caused by: com.fasterxml.jackson....
0
votes
2
answers
51
views
How to make SpringBoot application and tests work with same path resolving service?
A custom class PathConfigurationService sets a current path of running application to C:\project. But since test is inside module x it's user.dir system property is different from main application ...
0
votes
1
answer
207
views
mvn test fails but running the test from IntelliJ IDEA pass
I have this a test that I run under
@RunWith(SpringRunner.class)
@SpringBootTest
@Test
public void testFind() throws IOException {
Review<Hostel> hostelByComplaintId =
...
0
votes
0
answers
479
views
Show Database State Durring Debug of a Test
I am testing a Spring Boot application and one of my unit tests modifies a database table. Is there any way to see the changes to the table during a debug session in IntelliJ Ultimate?
If possible, ...