LinuxSuRen / api-testing

YAML based API testing tool. 开源接口调试、测试工具。Mock Server

Home Page:https://linuxsuren.github.io/api-testing/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a flag to enable/disable reload mock config automatically

LinuxSuRen opened this issue · comments

commented

The Mock Server can only read the config at the startup stage. Users need to restart it if they modified the config file content.

Solution

Support to watch the changes of the mock config file. And provide a flag to enable or disable this feature. The usage might be:

atest mock --files demo-server.yaml --auto-reload [true|false]

And I prefer setting the flag value --auto-reload to be false.

References

/assign @yuluo-yx