Skip to content

suwa-yuki/TAWS-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TAWS

CI Status Version License Platform

TAWS is a Mocking & Stubbing Library for AWSiOSSDKv2.
AWSMock is simple class that can write stub & mock, it like RSpec.
Let try mocking and stubbing to AWS!

Usage

  1. To run the example project, clone the repo, and run pod install from the Example directory first.
  2. #import <TAWS/TAWS.h> in your test case.

AWSMock

AWSMock *mock = [AWSMock mockWith:[AWSSNS class]
                          receive:@selector(subscribe:)
                             with:request 
                        andReturn:response];

// Call Subscribe API

[mock verify];

AWSStub

AWSStub is alias to AWSMock.

AWSStub *stub = [AWSStub stubWith:[AWSSNS class]
                          receive:@selector(subscribe:)
                             with:request 
                        andReturn:response];

Suported Services

  • AWSAutoScaling
  • AWSCloudWatch
  • AWSCognitoIdentity
  • AWSCognitoSync
  • AWSDynamoDB
  • AWSEC2
  • AWSElasticLoadBalancing
  • AWSKinesis
  • AWSLambda
  • AWSMachineLearning
  • AWSS3
  • AWSSES
  • AWSSNS
  • AWSSQS
  • AWSSimpleDB

Requirements

TAWS require AWSiOSSDKv2.

Installation

TAWS is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "TAWS"

Author

Classmethod, Inc.

License

TAWS is available under the MIT license. See the LICENSE file for more info.

About

Mocking & Stubbing Library for AWSiOSSDKv2.

Resources

License

Stars

Watchers

Forks

Packages

No packages published