Added options to pass props via @AutoConfigureStubRunner (#61)

* Added options to pass props via @AutoConfigureStubRunner

it's much easier to pass props via the annotation instead of property files. With this change the user can provide the properties inside the test via the annotation. The only thing that has to be passed via props is repositoryRoot (typically it's a very constant property that you set once).

fixes #46
This commit is contained in:
Marcin Grzejszczak
2016-08-24 16:14:10 +02:00
committed by GitHub
parent 3f799405a4
commit 5d3e99874f
30 changed files with 207 additions and 136 deletions

View File

@@ -55,15 +55,15 @@ Some of the properties that are repetitive can be set using system properties or
| Property name | Default value | Description
|stubrunner.minPort|10000| Minimal value of a port for a started WireMock with stubs
|stubrunner.maxPort|15000| Minimal value of a port for a started WireMock with stubs
|stubrunner.stubs.repositoryRoot|| Maven repo url. If blank then will call the local maven repo
|stubrunner.stubs.classifier|stubs| Default classifier for the stub artifacts
|stubrunner.repositoryRoot|| Maven repo url. If blank then will call the local maven repo
|stubrunner.classifier|stubs| Default classifier for the stub artifacts
|stubrunner.workOffline|false| If true then will not contact any remote repositories to download stubs
|stubrunner.stubs.ids|| Array of Ivy notation stubs to download
|stubrunner.ids|| Array of Ivy notation stubs to download
|======================
===== Stub runner stubs ids
You can provide the stubs to download via the `stubrunner.stubs.ids` system property. They follow the following pattern:
You can provide the stubs to download via the `stubrunner.ids` system property. They follow the following pattern:
[source,java,indent=0]
----