Giter Club home page Giter Club logo

flexboxkatas's Introduction

React Native Katas: Prototype

HACK HACK HACK HACK HACK HACK HACK HACK HACK HACK

Only use this if you know what you're doing.

HACK HACK HACK HACK HACK HACK HACK HACK HACK HACK

This project was the prototype for React Native Katas. It was done using Facebook's internal UI testing framework.

Quick Start

Unfortunately it wouldn't be quick. but:

  1. Clone this project
  2. cd
  3. npm i
  4. open xcode and build the project, make sure packager starts up
  5. cd ios
  6. node runner.js

Now, make edits to IntegrationTests/DefaultLayoutTest.js to change its visuals

FBK will pickup the file change and run:

  1. Vanilla xcode tests, which uses FB's own native test snapshotting
  2. It will parse results and look for the images as well as test result
  3. Compare images
  4. Generate an animated gif, showing the differences

If there wasn't any difference (i.e. tests succeed) there isn't anything happening.

Notes

This should be expanded on but:

  1. FB UI tests rely on pre-recorded 'master screens'
  2. Recording mode is done via the objc-c file lining out all of the tests
  3. A first run need to be made for that to happen, which will save ref images to disk
  4. turn off recording

In addition:

  1. Tests must live in a special directory called IntegrationTests and have the boilerplate files residing in it, this is in order for tests to live outside of the fb-universe
  2. Image snapshot in record mode are saved in an internal magic folder (get that out of the testing infra), can be configurable but hard to find.

(key: referenceImagesDirectory)

flexboxkatas's People

Contributors

jondot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.