Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
20 views

Setting up Test Resources Folder in Eclipse

Is there any way to setup and mark a package as Test resources package/folder in Eclipse IDE for java project for Junit5 which can be easily done in IntelliJ IDE ?. Thanks. I tried exploring ways like ...
JAGADEESH UNDAVALLI's user avatar
0 votes
0 answers
18 views

pom.xml file for kotlin Junit fails with "ClassSelector [className = 'InventoryTest'] resolution failed"

I am trying to set up some kotlin tests with JUnit, but when trying to run the tests, i get the following error: Internal Error occurred. org.junit.platform.commons.JUnitException: TestEngine with ID '...
powerofcode's user avatar
-2 votes
1 answer
183 views

How to create a Junit test case in Intellij IDEA?

I need to set up a JUnit test case for a Java project. How can I manually add a test folder to your project structure and write a JUnit test case to execute and view the results? Can anyone provide ...
Arun's user avatar
  • 21
0 votes
0 answers
98 views

java.lang.AbstractMethodError at SpringExtension.java:381 in IntelliJ

i have tried to run some tests for my spring boot application that i`m currently working on in Java. I keep getting an 'AbstractMethodError' and i'm not entirely sure what has been causing it. @...
anonymous's user avatar
0 votes
0 answers
43 views

Get program traces with JaCoCo

Looking to retrieve program traces using JaCoCo, on a Maven project in IntelliJ. The overall point is to get as much control flow graph information as possible using JaCoCo, but I understand it might ...
Arseni's user avatar
  • 11
0 votes
0 answers
21 views

Android Studio Changed my Modules, and now my Unit Tests are Red all over

I recently upgraded my Android Studio to Hedgehog, and since then, any time I try to edit a unit test, it complains that classes I define within the same module are not able to be found, and it ...
Dan Fawaz's user avatar
0 votes
1 answer
137 views

Problem when running unit test with Junit5

I'm trying to do some units tests but no matter what, I always received the following error: java.lang.NoClassDefFoundError: org/junit/jupiter/api/extension/ScriptEvaluationException This is from the ...
dcm50's user avatar
  • 159
-1 votes
1 answer
40 views

Different Output for Test Between IntelliJ and Maven?

I have a simple check with ObjectMapper.writeValueAsString for a test to verify that no input have been changed without a developer having noticed it. It works fine but the issue is that the length ...
David S's user avatar
  • 177
-1 votes
1 answer
1k views

Why Log info is not printing in IDE console while running JUNIT?

I am using IntelliJ to run Junit. I have below java method and it has LOGGER(org.slf4j.Logge) details public String getName(){ LOGGER.info("getName method is called...."); ...
ezhil's user avatar
  • 1,045
0 votes
2 answers
81 views

Offline IntelliJ installation and junit

I've seen similar questions but my installation has no outside connectivity. I've tried the recommendations in several posts I'll link below but my issue persists. I downloaded both junit and hamcrest ...
k_charles's user avatar
1 vote
0 answers
54 views

Display test results in Intellij in same order as defined in test method

When running Junit 4 tests on Intellij (Community 2023.2), I'd like the results to be displayed in the order the tests are defined in the test method. The results are displayed in a random order, ...
runningwild's user avatar
0 votes
0 answers
106 views

Run cucumber test and unit test in specific order

In my app, one cucumber test (feature) and one unit test seem to interact unexpectedly. To debug the issue I need to run them both in a specific order. So far I have tried this without success: run ...
David Kubecka's user avatar
0 votes
0 answers
108 views

Can't generate coverage report in Intellij IDEA

I want to generate a coverage report from IDEA/ I've seen this instruction and a lot of other. But I simply don't have this button in the Coverage tool window or in any other places. my coverage tool ...
rendoteru's user avatar
1 vote
0 answers
94 views

IntelliJ can't find files from test/resources/subFolder

I'm having a problem with IntelliJ IDEA 2022.1 (Community Edition), when running a unit test, can't find a resource class from src/test/resources folder.Based on various stackoverflow links I have ...
Loren's user avatar
  • 340
2 votes
2 answers
6k views

Getting error "TestEngine with ID 'junit-jupiter' failed to discover tests" while running test

I am trying to run tests with Junit 5 in my maven project but getting error : TestEngine with ID 'junit-jupiter' failed to discover tests . junit-jupiter-engine version is 5.9.0 (tried other versions ...
Harsh Agarwal's user avatar

15 30 50 per page
1
2 3 4 5
47