Skip to main content

All Questions

Tagged with
0 votes
1 answer
42 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 ...
zecuse's user avatar
  • 167
0 votes
0 answers
21 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 ...
Kleifker's user avatar
1 vote
0 answers
81 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 ...
RobertNickel's user avatar
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 ...
mayur_mitkari's user avatar
0 votes
0 answers
67 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 ...
Denisa Fericean's user avatar
0 votes
0 answers
17 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 ...
Bee's user avatar
  • 12.4k
2 votes
1 answer
47 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. ...
cyberpunk's user avatar
0 votes
0 answers
73 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 ...
Manish's user avatar
  • 1,429
1 vote
0 answers
42 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 ...
Ethan Garcia's user avatar
0 votes
0 answers
34 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 ...
user2715478's user avatar
  • 1,273
0 votes
1 answer
25 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 ...
MiguelSlv's user avatar
  • 14.9k
-1 votes
1 answer
105 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 ...
filpa's user avatar
  • 3,660
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&...
Bitwise DEVS's user avatar
  • 3,156
1 vote
1 answer
737 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\...
tmanral's user avatar
  • 25
3 votes
0 answers
349 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 ...
David's user avatar
  • 4,142

15 30 50 per page
1
2 3 4 5
42