Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Easy to use multivariate testing library.
Objective-C
Branch: master

Update VariantObject.h

Changes weight to strong, since NSNumber is immutable.
latest commit e15efe34ee
@wess authored

README.md

Variant

Variant is a simple library for creating multivariate testing for your Objective-C projects.

Setup

To use Variant, just include the Variant project in your project and link against libVariant.a.

Example Usage

Variant has a simple approach to creating and executing tests. Just import define your test and execute the instance when needed.

#import <Variant/Variant.h>

// Quick test
    NSString *abTest = (NSString *)[Variant variantTestWithA:^{
        return @"Hello";
    } B:^{
        return @"World";
    }];

    NSLog(@"TEST: %@", abTest);

    // Build test:
    Variant *test = [Variant newVariantTest];
    [test addResponse:@“Hello world” forVariant:@“A”];
    [test addResponse:@“This is a test” forVariant:@“B”];
    [test addResponse:^{
        return “This is a block string response”;
    } forVariant:@“C”];

    NSString *response = (NSString *)[test execute];

    NSLog(@“Response: %@“, response);

Developer info

License

Read LICENSE file for more info.

Something went wrong with that request. Please try again.