spring-projects / spring-projects/spring-security

IntelliJ built-in Gradle runner cannot run tests

Open
#11,371 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: saml2 type: bug
Dominant language
Java
Stars
9.6k
Forks
6.3k
Avg merge
2d 11h
Merged PRs (30d)
52

Description

When attempting to run tests on the 5.7.x branch using the built-in Gradle runner, the tests fail to compile and reporting missing classes in Saml2LoginConfigurerTests.

However, when configuring to run tests using the external Gradle tool, all tests compile and Saml2LoginConfigurerTests runs successfully.

Here is the failing configuration:

Screen Shot 2022-06-14 at 2 19 52 PM

Here is the passing configuration:

Screen Shot 2022-06-14 at 2 20 11 PM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure on the 5.7.x branch using IntelliJ's built-in Gradle runner, then compare it with the external Gradle tool configuration. Start with the missing-class errors from Saml2LoginConfigurerTests; done means the built-in runner compiles and runs that test successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.