Skip to content

Disable DevTools' environment post-processors and auto-configuration when running tests #5307

@wilkinsona

Description

@wilkinsona

Currently, when spring-boot-devtools is being used, it's on the classpath when a project's tests are being run using Maven or Gradle. If possible, we should exclude Dev Tools from the classpath so that the tests are run using a classpath that's as close to the application's runtime classpath as possible.

A few concerns:

  • Eclipse makes no distinction between compile and test classpaths. If we do this the tests will run with different class paths in the IDE and on the command line.
  • I'm not sure it's possible in Maven. @snicoll?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions