Skip to main content

Mock command line utils by replaying recorded invocations

Project description

See Build Status on Travis CI

This package provides two command line utilities: crecord and creplay. The former records the output (stdout and stderr) and the return code of a command and the latter replays the command invocation by reproducing its output and return code:

$ crecord echo foo
foo
$ creplay echo foo
foo
$ crecord ls foo
ls: foo: No such file or directory
$ creplay ls foo
ls: foo: No such file or directory
$ echo $?
1

This could be used to mock slow and environment-dependent command invocations for testing purposes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cli_mock-0.0.1.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file cli_mock-0.0.1.tar.gz.

File metadata

  • Download URL: cli_mock-0.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cli_mock-0.0.1.tar.gz
Algorithm Hash digest
SHA256 25862b77855b8449da6faacf5da58657188c61617df76b5ffa63c4362e81a382
MD5 bcd003d8d9e413abffa5370e2889551e
BLAKE2b-256 0d9ecc5bcc63c5ecc52dc63f1385d06c6ffcc595cfdd4f7cf27ffca02ca897da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page