Skip to content

Commit

Permalink
build(auth): make resources in /conf avail to tests IQSS#9268
Browse files Browse the repository at this point in the history
To use data in /conf for tests, adding the folder in Maven to copy them to the test classpath as resources helps to use them in tests very easily.
All dirs under /conf will be copied to the /target/test-classes directory recursively. This also works when running tests in IDEs like IntelliJ.
  • Loading branch information
poikilotherm committed Jan 10, 2023
1 parent 1fb0f58 commit e31dba3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,11 @@
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>${project.basedir}/conf</directory>
</testResource>
</testResources>
<!-- <testResources>
<testResource>
<directory>${project.basedir}/src/main/resources</directory>
Expand Down

0 comments on commit e31dba3

Please sign in to comment.