Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.
/ aws-mockery Public archive

aws-mockery is a program which uses the mockery API to generate implementations of selected aws-sdk-go service interfaces.

License

Notifications You must be signed in to change notification settings

codeactual/aws-mockery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-mockery GoDoc Go Report Card Build Status

aws-mockery is a program which uses the mockery API to generate implementations of selected aws-sdk-go service interfaces.

Currently only aws-sdk-go version 1.x is supported.

Use Case

Asserting that dependent code interacts with the service APIs as expected, but without the cost (and feedback fidelity) of making real requests to the service.

Usage

To install: go get -v github.com/codeactual/aws-mockery/cmd/aws-mockery

Examples

Display help:

aws-mockery --help

Output mock implementations for KMS, Route53, and SNS:

aws-mockery --out-dir /path/to/mocks --sdk-dir /path/to/github.com/aws/aws-sdk-go --service=kms,route53,sns
  • --service expects a comma-separated list of identifiers, e.g. ec2, which must be a directory name from the SDK's service directory.

Development

License

Mozilla Public License Version 2.0 (About, FAQ)

Contributing

  • Please feel free to submit issues, PRs, questions, and feedback.
  • Although this repository consists of snapshots extracted from a private monorepo using transplant, PRs are welcome. Standard GitHub workflows are still used.

About

aws-mockery is a program which uses the mockery API to generate implementations of selected aws-sdk-go service interfaces.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published