Skip to main content

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: If true, use baseUrls.local by default
  • baseUrls.local: Base URL for local/mock testing
  • baseUrls.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 πŸš€