Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Frankified again - Pull Request #52 remix #59

Merged
merged 6 commits into from
Aug 25, 2012
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Frankfied
  • Loading branch information
moredip committed Aug 7, 2012
commit f40a676de83ff57813dad2e631cd251690837347
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
[submodule "Vendor/SSPullToRefresh"]
path = Vendor/SSPullToRefresh
url = https://github.com/samsoffes/sspulltorefresh.git
[submodule "Vendor/symbiote"]
path = Vendor/symbiote
url = https://github.com/moredip/symbiote.git
6 changes: 6 additions & 0 deletions Cheddar for iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1439,10 +1439,16 @@
);
INFOPLIST_FILE = "Resources/Cheddar-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(FRANK_LIBRARY_SEARCH_PATHS)",
);
OTHER_CFLAGS = "-DDEBUG";
OTHER_LDFLAGS = (
"$(inherited)",
"-all_load",
"-ObjC",
"$(FRANK_LDFLAGS)",
);
PRODUCT_NAME = Cheddar;
PROVISIONING_PROFILE = "";
Expand Down
12 changes: 12 additions & 0 deletions Frank/features/my_first.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Feature:
As an iOS developer
I want to have a sample feature file
So I can see what my next step is in the wonderful world of Frank/Cucumber testing

Scenario:
Rotating the simulator for demonstration purposes
Given I launch the app
Given the device is in landscape orientation
Given the device is in portrait orientation
Given the device is in landscape orientation
Given the device is in portrait orientation
20 changes: 20 additions & 0 deletions Frank/features/step_definitions/launch_steps.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
def app_path
ENV['APP_BUNDLE_PATH'] || (defined?(APP_BUNDLE_PATH) && APP_BUNDLE_PATH)
end

Given /^I launch the app$/ do
# latest sdk and iphone by default
launch_app app_path
end

Given /^I launch the app using iOS (\d\.\d)$/ do |sdk|
# You can grab a list of the installed SDK with sim_launcher
# > run sim_launcher from the command line
# > open a browser to http://localhost:8881/showsdks
# > use one of the sdk you see in parenthesis (e.g. 4.2)
launch_app app_path, sdk
end

Given /^I launch the app using iOS (\d\.\d) and the (iphone|ipad) simulator$/ do |sdk, version|
launch_app app_path, sdk, version
end
8 changes: 8 additions & 0 deletions Frank/features/support/env.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require 'frank-cucumber'

# UIQuery is deprecated. Please use the shelley selector engine.
Frank::Cucumber::FrankHelper.use_shelley_from_now_on

# This constant must be set to the full, absolute path for your Frankified target's app bundle.
# See the "Given I launch the app" step definition in launch_steps.rb for more details
APP_BUNDLE_PATH = File.expand_path( '../../../frankified_build/Frankified.app', __FILE__ )
1 change: 1 addition & 0 deletions Frank/frank_static_resources.bundle
4 changes: 4 additions & 0 deletions Frank/frankify.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
INSTALL_PATH = /./

FRANK_LDFLAGS = -all_load -ObjC -framework CFNetwork -framework Security -lShelley -lCocoaHTTPServer -lFrank
GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = FRANKIFIED
Binary file added Frank/libCocoaHTTPServer.a
Binary file not shown.
Binary file added Frank/libFrank.a
Binary file not shown.
Binary file added Frank/libShelley.a
Binary file not shown.
1 change: 1 addition & 0 deletions Vendor/symbiote
Submodule symbiote added at 2f022f