All Questions
627
questions
0
votes
1
answer
46
views
Yet another "No tests found" question (testDebugUnitTest). Did I miss a dependency somewhere? Trying to use JUnit5
I've made my first android app (a very simple button tapper) and am currently trying to create test files for it. I've been following the YouTuber Philipp Lackner and have gotten by pretty well ...
0
votes
0
answers
22
views
Gradle junitXML system-out at wrong position
I use Gradle and Appium for integration tests. I want to upload the generated junit.xml file to an external tool. For this, I need a specific format for my XML file.
Currently, 'system-out' appears ...
1
vote
0
answers
85
views
AspectJ Internal Error: unable to add stackmap attributes. Unsupported class file major version 61
I have the following Kotlin application
------------------------------------------------------------
Gradle 8.7
------------------------------------------------------------
Kotlin: 1.9.22
...
0
votes
0
answers
43
views
Gradle and Quarkus version Upgrade broke cucumber test suite ''No tests found for given includes:''
I have a cucumber test suite, which was working fine until gradle 7.6 version and Quarkus 3.5.3 version.
Once I upgrade to gradle 8.6 and Quarkus version 3.8.4 my cucumber tests are not recognized by ...
0
votes
0
answers
69
views
After upgrade serenity to version 4.1.10 test report is not generated correctly, I get an error on test scenario details
After upgrading serenity to 4.1.10, junit 5 and java to version 21 the serenity report is not generated correctly. When clicking on scenario link from generated report to see the details I'm getting ...
0
votes
0
answers
18
views
In JUnit, is there a way to include a union of test classes and tags?
I'm using JUnit with Gradle.
I want to include a set of Test Classes I know and a set of tags I know.
When I use TestFilter.includeTestsMatching() with jUnitPlatformOptions.includeTags() the result is ...
2
votes
1
answer
49
views
Openrewrite migrate static imported assertThrows to assertJ doesn't work
i want to migrate unit-tests from junit and harmcrest to assertJ.
Most things work with the recipe
activeRecipe("org.openrewrite.java.testing.assertj.JUnitToAssertj")
but some doesn't e.g. ...
0
votes
0
answers
83
views
ContainerLaunchException: Aborting attempt to link to container
I have written a functional tests which uses mock containers using TestContainers.
When I am running a complete application test using ./gradlew clean build, still the error appears in console but ...
1
vote
0
answers
45
views
Jacoco Coverage Report Not Generated
I am attempting to generate a coverage report using jacoco so I can use the coverage gutters extension in VSCode. Although my coverage report is not being generated at all and all I have is an empty ...
0
votes
0
answers
35
views
Log JUnit ClassOrderer Random Seed with Spring Boot and Logback
I am trying to log the JUnit ClassOrderer random seed using Logback, Spring Boot and Gradle. I found How can I make my JUnit tests run in random order? as related to my problem, but it uses the JUL ...
0
votes
1
answer
26
views
How to configure Jacoco plugin to read from custom gradle test task output?
Some of my tests need a special gradle task to run. The special task sets an environment variable and runs all JUnit tests that are conditioned by that variable.
When I run the custom task and then ...
-1
votes
1
answer
120
views
Is there a way to include JUnit 5 Tags in the resulting html reports
I have a medium-sized test suite which contains various tests with various tags. For example:
TestClassOne (Tags: unit, api)
TestClassTwo (Tags: integration, api)
etc.
I looked into the produced ...
0
votes
0
answers
31
views
Android: Test unit is being run twice
Been trying to consolidate unit test report for a multi-module Android project with custom Gradle task using TestReport.
project level build.gradle
tasks.register<TestReport>("testReport&...
1
vote
1
answer
765
views
jacoco test report configurations from build.gradle file causing build failure
After importing an existing project, gradle build for spring boot is failing in my local. This same project I have been able to build successfully before.
The error in console is:
Build file 'C:\Users\...
3
votes
0
answers
359
views
java.lang.NoClassDefFoundError: jakarta/servlet/ServletConnection while wrinting junit
java.lang.NoClassDefFoundError: jakarta/servlet/ServletConnection while wrinting junit
I am writing Junit for my Java projects. I am have an issue like
when I am removing This I am able to run test ...