Link Search Menu Expand Document

Config

The config file explaination

Table of contents

  1. Config
    1. overview

overview

the config file example

debug: false

failFast: true
timeout: 2000

order:
  - pattern: examples/post.toml
  - pattern: examples/get.toml
  - pattern: examples/asserts.*

env:
  hello: world
  name: tom
  host: 'http://httpbin.org'
  content_type: application/json
  array:
    - a
    - b
    - c
  • debug: equals to ./fetch run -v, will show request/response detail. (default false)
  • timeout: ms, the timeout for each case (default 0, means no timeout)
  • failFast: if true, will exit if got fail(default false)
  • order: run cases in order
    • if order is not empty, you can run without any file path, just only the config ./fetch -c config.yaml