KKABTestingService

KKABTesting defines AB Testing related interfaces to let developer implement their own dispatch logic.

Keyword

Experiment

A topic of your A/B testing, should contains at least two variants(which also called "test cases").

Variant

A scenario that you want user to experiment with.

Installation

To install it, simply add the following line to your Podfile:

pod 'KKABTestingService'

Role

ABTestingVariantSetProtocol

Pre-defined variants(test cases) for specific experiment.

 enum Variant: String {
     case Control
     case Experimental
 }

extension Variant: ABTestingVariantSetProtocol {
   static var defaultValue: Variant {
       return .Control
   }
}

ABTestingServiceProtocol

ABTestingService focus on:

  1. Setup A/B Testing SDK
  2. Update user id after user login
  3. Define all of your experiments in your product