PR#57 Describe TestFixtures in more detail and give an alternative
This commit is contained in:
parent
9d3f72d1fa
commit
18852e1dc3
1 changed files with 3 additions and 0 deletions
|
|
@ -134,6 +134,9 @@ That's because of [java-test-fixtures](https://docs.gradle.org/current/userguide
|
|||
Check out the build.gradle's to see how that's done.
|
||||
This can be useful to share some static Test Data, or extensions in our case.
|
||||
|
||||
> Test Fixtrues creates a new sourceset between the production code and the test code. test depends on testFixtures and testFixtures depends on source. So test sees everything in testFixtures and other modules can also use testFixtures. This way we can share extensions or other helper classes.
|
||||
> An alternative to use test code between modules instead of TestFixtures is to use a separate module, like the :mockserver defined in the project.
|
||||
|
||||
So let's add this extension:
|
||||
```kotlin
|
||||
@RegisterExtension
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue