-
Notifications
You must be signed in to change notification settings - Fork 12
CLI
Volodymyr Ladnik edited this page Sep 25, 2018
·
1 revision
CLI Mimic is a headless version of Mimic, that doesn't provide most of the Desktop version functionality, but it can run on CI servers, impersonate the same services and report request/response data.
- After you defined all services you need in the Desktop version of Mimic, you can export them as a json file by navigating through File>"Export Services..." in the main menu and selecting the ones you need. Mimic will export service definitions and all responses associated with them.
- Then you can commit generated JSON file into your repo test fixtures folder.
- You can install CLI version of Mimic into you CI container with
npm install -g @creditkarma/mimic-cli
command. It will addmimic
command into your shell - By running
mimic path/to/exported/services.mimic
you can start the same services in the CI environment. - Besides that CLI Mimic will report all request/response data into STDOUT and errors into STDERR, which you can log or discard.