Giter Club home page Giter Club logo

briar-ios-example's Introduction

Briar

an iPad/iPhone to test and demonstrate the features of the briar gem:

https://github.com/jmoody/briar

briar extends the calabash-ios gem.

motivation

DRY

i have several iOS projects that use calabash-cucumber and i found i was rewriting lots of steps and supporting code.

Testing

i want to provide an iOS app that the calabash community can use to test the calabash framework.

a while back, i tried to port the calabash-ios-server to ARC to fix a leak that was causing one of my tests to occasionally crash. i did my conversion and realized there was no way to see if my changes broke calabash; there was no app that comprehensively tested all the calabash features.

License of Images

Glyphish

some of images used are from Glyphish.

this is the license: http://www.glyphish.com/license.txt

i purchased these images.

please be nice - don't gank them.

buy a copy of Glyphish for yourself.

Recovery Warriors LLC

the emoticons are from Recovery Warriors LLC.

please don't distribute them.

Recipe Images

http://www.appcoda.com/ios-programming-uicollectionview-tutorial/

How to Test

the default cucumber profile sets NO_LAUNCH=1 which implies 'do not launch with instruments'.

# test against the simulator no launching
$ cd Briar/
$ cucumber

to test with NO_LAUNCH=0 (launch with instruments)

# test agains the simulator - launch with Instruments (iOS 7) or sim_launcher (iOS 6)
$ cd Briar/
$ cucumber -p launch

testing on devices

have a look at the cucumber.yml file to see how to test on devices.

$ cd Briar/
$ cucumber -p earp 
$ cucumber -p venus
$ cucumber -p neptune
$ cucumber -p neptune_launch
$ cucumber -p pluto

using the briar command

The briar binary provides useful commands to improve your calabash workflow.

There is detailed help about how to use the .xamarin convention and dotenv to setup your environment.

# help
$ briar help
$ briar help console
$ briar help .xamarin

# open a console against simulators
$ briar console sim6            <== against the current simulator
$ briar console sim7 ipad_r_64  <== changes the default simulator

# open a console against named devices
$ briar console venus
$ briar console neptune

# install the calabash server from a local repo and remove all stale simulator targets in one command
$ briar install calabash-server

# do a clean install of your .ipa on named device
$ briar install pluto
$ briar install earp

# open a cucumber html report in your default browser
$ briar report       <== last run against the simulator
$ briar report venus <== last run against venus

# remove all *-cal targets from the simulator (without resetting the device)
$ briar rm sim-targets

# resolve APP_BUNDLE_PATH auto-detection problems by removing spurious DerivedData directories
$ briar rm dups 
$ briar rm dups briar-ios-example 

# change the simulator version
$ briar sim ipad_r
$ briar sim iphone_4in

testing on Xamarin Test Cloud

look at the Briar/Rakefile for details about how to use rake to submit tests to Xamarin Test Cloud.

Tags

  • issue_* ==> calabash github issue
  • issues ==> all calabash github issues
  • fb_* ==> internal fogbugz
  • trello_* ==> xamarin trello
  • @briar ==> testing briar gem features
  • @core ==> calabash core
$ rake tag_report
@backdoor
@bars
@briar
@buttons
@core
@date_picker
@email
@fb_168
@first_view
@flickering
@ipad_only
@issue_116
@issue_128
@issue_131
@issue_151
@issue_156
@issue_189
@issue_194
@issues
@keyboard
@no_launch
@rotation
@segmented_control
@sliders
@tabbar
@text_field

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.