Giter Site home page Giter Site logo

lela's People

Contributors

abhinavn avatar bnickel avatar gogopair avatar justinseanmartin avatar oleg-ivanov avatar paulz avatar phatmann avatar przybylski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lela's Issues

Support KIF 3.3.0

Currently Lela doesn't support KIF 3.3.0 as the XCTest and OCTest sub-specs have been removed.

Rename LELA to KIF.Visual

@bnickel, I would like to rename LELA to KIF.Visual to make it clear that it is part of the KIF ecosystem and what its purpose is. Is this change okay with you?

Location of expected images is where?

Hello, I'm simply stumped on where to put the expected images in order to pass the test. The documentation states, "copy the images into your test bundle" ... but I'm too noob to know where/how to do that.

Expected Image cannot be found

I added the Expected in the acceptance tests folder and made sure that test bundle also had the image, but when I run the tests i get error saying that "Could not find expected image for Login Screen."

Code Snipet

#import "ImageDiffTests.h"
#import "KIF.h"
#import "KIFUITestActor+Lela.h"
#import "Lela.h"


@implementation ImageDiffTests
- (void)setUp
{
    [super setUp];
}
- (void)tearDown
{

    [super tearDown];
}
- (void)testLoginImage
{
    [tester expectScreenToMatchImageNamed:@"Login Screen"];
}

Login Screen.png-768x1024@1x~ipad,iOS7.1.png is the file with the bundle

What am I missing here?

Lela + use_frameworks!

For some reason (I have Swift only framework in tests) I use use_frameworks! in cocoapods, so Lela is getting compiled to its own .framework
So this function

+ (NSString *)directoryForExpectedImages
{
    return [[NSBundle bundleForClass:self] resourcePath];
} 

returns path for Lela.framework, not the testing target
but I have no means to override this from my test

imageWithContentsOfFile can't find the filepath error - expectScreenToMatchImageNamed

Hello. For some reason [imageWithContentsOfFile:] doesn't find the path file image, but using NSData it works, is anyone else having this problem? is anyone using Lela? :)

+ (UIImage *)expectedImageWithName:(NSString *)name
{
    NSString *fileName = [[self imageNameForScreenNamed:name] stringByAppendingPathExtension:@"png"];
    NSString *filePath = [[self directoryForExpectedImages] stringByAppendingPathComponent:fileName];
    NSData *data = [NSData dataWithContentsOfFile:filePath]; //I changed these next 2 lines
    return [UIImage imageWithData:data];
}

can you change it? I'm using cocoapods!

note: using iOS 8.3 with ipad 2 simulator

TIA!

Is Lela friendly with iOS9 and Xcode7?

Just curious, because we ported our app to Xcode7 and I'm having some interesting referential/dependency errors.

ld: warning: directory not found for option '-L/Users/klucas/Documents/Gannett/GIT/akira-ios/build/Debug-iphoneos'
"OBJC_CLASS$_KIFTestCase", referenced from:
OBJC_CLASS$_Lela_Visual_Tests in Lela_Visual_Tests.o
"OBJC_CLASS$_KIFUITestActor", referenced from:
objc-class-ref in Lela_Visual_Tests.o
"OBJC_METACLASS$_KIFTestCase", referenced from:
OBJC_METACLASS$_Lela_Visual_Tests in Lela_Visual_Tests.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.