Skip to content

Small example project to reproduce testing conflict between gradle and vscode-java-test

Notifications You must be signed in to change notification settings

appleseedexm/gradle-classpath-vscode-java-test

Repository files navigation

Reproduction

Running gradle tests is successful:

./gradlew test

Executing tests of app/src/test/java/org/example/app/MessageUtilsTest.java from vscode-java-test should fail. The problem seems to be that vscode-java-test builds a classpath that contains the ConflictingClass.java in the test folder, even though we only inject the testFixtures. This has complex implications when running bigger projects, i.e. Spring having conflicting beans because the classpath contains more files than necessary.

About

Small example project to reproduce testing conflict between gradle and vscode-java-test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages