Configuration
Restlyn reads its config from a .restlynrc file in the project root.
π Supported Formatβ
Use INI-style:
[paths]
features = features/
tests = generated/tests
stepmaps = generated/stepmaps
schemas = schemas/
data = data/
report = generated/report
[baseUrls]
local = http://localhost:4000
prod = https://api.example.com
[settings]
localMode = true
timeout = 5000
[headers]
Authorization = Bearer sample-token
π Folder Structureβ
Default structure:
features/
login.feature
schemas/
user.schema.json
data/
login.csv
generated/
stepmaps/
tests/
report/
π Environmentβ
localMode: Iftrue, usebaseUrls.localby defaultbaseUrls.local: Base URL for local/mock testingbaseUrls.prod: Base URL for production testing
π Reportingβ
report.path: Output folder for report files
πΉ Runtime Overrideβ
You can override parts of the config via CLI flags:
restlyn tests --schemas schemas-prod/
restlyn verify --generated custom-tests/
CLI overrides always take precedence.
π Reloadingβ
You can update .restlynrc without restarting anything β itβs read dynamically.
Use .restlynrc to streamline test generation and execution in all environments.
β‘οΈ Thatβs it! You're ready to automate API tests from Gherkin to report π