Use the following command:
./gradlew run --args="limit=$limit offset=$offset graphQL=$graphQL"
Where:
$limitis the limit param for the API. Number. Mandatory.$offsetis the offset param for the API. Number. Mandatory.$graphQLuses PokeAPI GraphQL v1 (beta) instead of PokeAPI v2. Boolean. Optional. Defaultfalse.
Examples:
./gradlew run --args="limit=100 offset=23"
./gradlew run --args="limit=300 offset=9 graphQL=true"
I've only created PokeAPI tests because it's representative of a typical test scenario: It has dependencies, mocks,
fake server responses in files...