Questions tagged [java-test-fixtures]
19 questions
11
votes
1 answer
Gradle test fixtures plugin and core module dependencies
I have a project built with Gradle version 6.4 and JDK 8. I'm trying to use the Gradle plugin for Test Fixtures (java-test-fixtures) but I have some issues with the dependencies.
According to the Gradle page linked above, the project should be…

JeanValjean
- 17,172
- 23
- 113
- 157
11
votes
0 answers
How to test kotlin function declared `internal` from within tests when java-test-fixtures module is in use
I've tried to make use of test fixtures in my project in kotlin. Unfortunately I have encountered a strange problem, probably a bug, in a component of the toolchain (not sure which one).
Normally a Kotlin function in main declared internal can be…

user3159253
- 16,836
- 3
- 30
- 56
4
votes
0 answers
Gradle platform with java-test-fixtures
I am configuring dependency versions for an multiproject gradle build in a centralized way. This way it works:
// root build.gradle.kts -- test configuration centralized
subprojects {
apply(plugin = "java-library")
repositories {
…

Alexander Vasiljev
- 1,974
- 3
- 19
- 27
2
votes
1 answer
What are the Test Fixtures used in the Spring Framework build and how are they used?
I read spring source code to learn unit test. but confuse about testFixtures usage?

LiLi
- 391
- 3
- 11
2
votes
1 answer
Is the java-test-fixtures plugin incompatible with the Build and run using IntelliJ IDEA setting?
It looks like if I use the java-test-fixtures plugin in my java Gradle project, when IntelliJ imports it the IDE will always mark the src/testFixtures dir as a Source Folder (visible in Module Settings, Sources tab).
Yet any dependencies I've…

Tom Tresansky
- 19,364
- 17
- 93
- 129
1
vote
1 answer
java-test-fixtures unable use with Kotlin
I have set java-test-fixtures for sharing test sources between multi-module project. Everythig looks good, but code of testFixtures module are generated to build/classes/testFixtures. But when I start building jar of other modules it returns me…

Andrew Sneck
- 724
- 9
- 18
1
vote
2 answers
Understanding the publication and implementation of test fixtures
For context, what I am trying to achieve being able to use test fixtures cross projects.
Within projects in the same repo, this is no issue and works as expected. However, as an external dependency I struggle to make it work.
First of all, when I am…

drue
- 21
- 6
1
vote
2 answers
How do I add testFixures as a dependency of a JvmTestSuite with gradle
I'm using java-test-fixtures in combination with jvm-test-suite. I'd like my testFixtures to be available to both unit tests and my integrationTest suite.
java-test-fixtures adds testFixtures as a dependency to the default unit test suite, along…

Ian Parkinson
- 131
- 6
1
vote
2 answers
Gradle test fixtures plugin for Android development
attempting to use gradle test fixtures with gradle 6.6.1, using the following set of plugins
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'
apply plugin: 'org.jetbrains.kotlin.kapt'
apply…

alsq
- 21
- 2
1
vote
0 answers
Gradle java-test-fixtures plugin with custom source and test set
So I have a multimodule java project the structure of each module is as follows
A[module root]
--- main[source set]
--- testFixtures
--- testsrc[test source set]
--- build.gradle
B[module root]
--- main[source set]
--- testsrc[test source set]
---…

Anudeep reddy
- 11
- 1
0
votes
0 answers
The java-test-fixtures plugin not working with dgs framework
I tried to use java-test-fixtures plugin in project with dgs framework but it looks it is not working. It was working with version 5.5.3 (spring boot 2.7) of dgs framework but since 6 (spring boot 3) no.
I have simple spring boot project with dgs…

tomsvet
- 1
- 1
0
votes
0 answers
Selenium Webdriver will not execute next step after opening browser and going to System Admin
Hi guys I have been trying to automate our Web browser, I have the Main class where I call all my classes that I create as soon as I run the Test, the open_Browser will run and when its done it will just stop there but I have called the other…

Jarred Cockett
- 1
- 3
0
votes
0 answers
Optional testFixtures in Gradle
I would like to add the java-test-fixtures plugin to a custom conventions plugin under buildSrc that I simply add to any of my modules. By doing so I only need to add my custom conventions plugin instead of having multiple (and different) plugins…

Hendrik Ebbers
- 2,570
- 19
- 34
0
votes
0 answers
Publishing test fixtures with submodules, gradle
I have been looking around for a way to include test fixtures in my gradle publications.
https://developer.android.com/studio/publish-library/configure-test-fixtures#kts suggests that it should work automatically so long as the project name is set…

drue
- 21
- 6
0
votes
1 answer
Are test classes included in the jar file when intellij creates it ? If not, how can I run a test class (should be in jar file) from command line?
I want to run a java program which is basically a Integration test class from command line using a jar file I created from intellij post build. But i am unable to since it throws classNotFoundException. Are test classes even included in the jar file…

userdr725
- 25
- 1
- 6