Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i run the test jmoody #77

Open
lummyare opened this issue May 19, 2015 · 11 comments
Open

How do i run the test jmoody #77

lummyare opened this issue May 19, 2015 · 11 comments

Comments

@lummyare
Copy link

I have tried running ./ sim-prepare.sh and also sh sim.prepare.sh. i also cd to Briar and ran cucumber -p launch but that just listed Defined profiles in cucumber.yml.

Please can you help?

@jmoody
Copy link
Owner

jmoody commented May 19, 2015

@lummyare

The README.md is in a bad shape.

Try:

$ ./jenkins-calabash.sh

@lummyare
Copy link
Author

It doesnt work either.

@jmoody
Copy link
Owner

jmoody commented May 19, 2015

@lummyare

It doesnt work either.

What is the output?

Did you run this in the Briar directory?

$ cd Briar
$ ./jenkins-calabash.sh

@lummyare
Copy link
Author

here is the output. it only say successfully build but i need to run the scenarios in the feature files you have:

lummy:Briar seunare$ ./jenkins-calabash.sh
rbenv: bundle: command not found
INFO: unlocking the keychain
2015-05-19 17:05:39.268 xcodebuild[25921:236760] [MT] iPhoneSimulator: SimVerifier returned: Error Domain=NSPOSIXErrorDomain Code=53 "Simulator verification failed." UserInfo=0x7fb066161b60 {NSLocalizedFailureReason=A connection to the simulator verification service could not be established., NSLocalizedRecoverySuggestion=Ensure that Xcode.app is installed on a volume with ownership enabled., NSLocalizedDescription=Simulator verification failed.}
2015-05-19 17:05:39.379 xcodebuild[25921:236760] [MT] DVTAssertions: Warning in /SourceCache/IDEFrameworks/IDEFrameworks-7703/IDEFoundation/SourceControl/Model/IDESourceControlManager.m:423
Details: Error Domain=com.apple.dt.IDESourceControlErrorDomain Code=-1 "Missing extension: public.vcs.subversion" UserInfo=0x7fb066066bd0 {NSLocalizedDescription=Missing extension: public.vcs.subversion}
Object: <IDESourceControlManager: 0x7fb0624ab100>
Method: -loadRepositories
Thread: <NSThread: 0x7fb06282e740>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
▸ Cleaning Briar/Briar-cal [Debug]
2015-05-19 17:05:39.495 xcodebuild[25921:236815] DeveloperPortal: Using pre-existing current store at URL (file:///Users/seunare/Library/Developer/Xcode/DeveloperPortal%206.3.1.db).
▸ Building Briar/Briar-cal [Debug]
▸ Preprocessing Briar/Briar-Info.plist
▸ Precompiling Briar/Briar-Prefix.pch
▸ Precompiling Briar/Briar-Prefix.pch
▸ Compiling main.m
▸ Compiling BrSliderController.m
▸ Compiling BrAppDelegate.m
▸ Compiling BrCategories.m
▸ Compiling BrController.m
▸ Compiling BrRecipeCollectionController.m
▸ Compiling BrButtonViewController.m
▸ Compiling BrDatePickerController.m
▸ Compiling BrTextRelatedController.m
▸ Compiling BrDatePickerView.m
▸ Compiling SSKeychainQuery.m
▸ Compiling BrGlobals.m
▸ Compiling BrNavigationController.m
▸ Compiling BrAlphabetTableController.m
▸ Compiling BrWebViewController.m
▸ Compiling BrTabBarController.m
▸ Compiling SSKeychain.m
▸ Compiling BrSliderView.m
▸ Compiling BrScrollingHomeController.m
▸ Compiling main.m
▸ Compiling BrSliderController.m
▸ Compiling BrAppDelegate.m
▸ Compiling BrCategories.m
▸ Compiling BrController.m
▸ Compiling BrRecipeCollectionController.m
▸ Compiling BrDatePickerController.m
▸ Compiling BrButtonViewController.m
▸ Compiling BrTextRelatedController.m
▸ Compiling BrDatePickerView.m
▸ Compiling SSKeychainQuery.m
▸ Compiling BrGlobals.m
▸ Compiling BrNavigationController.m
▸ Compiling BrAlphabetTableController.m
▸ Compiling BrWebViewController.m
▸ Compiling BrTabBarController.m
▸ Compiling SSKeychain.m
▸ Compiling BrSliderView.m
▸ Compiling BrScrollingHomeController.m
▸ Copying InfoPlist.strings
▸ Compiling BrSliderController.xib
▸ Compiling BrSegController.xib
▸ Compiling BrWebViewController.xib
▸ Compiling BrDatePickerController.xib
▸ Compiling BrButtonViewController.xib
▸ Compiling BrTextRelatedController.xib
▸ Compiling BrAlphabetTableController.xib
▸ Processing Preprocessed-Info.plist
▸ Touching Briar
INFO: successfully built
rbenv: bundle: command not found

@jmoody
Copy link
Owner

jmoody commented May 19, 2015

rbenv: bundle: command not found

You don't have rbenv installed.

Use this:

$ cd Briar
$ ./sim-prepare.sh
$ export APP=./Briar-cal.app
$ be cucumber

The whole suite takes ~1 hour to run.

@lummyare
Copy link
Author

Thanks it works now but how do i run specific features? if i will run all the test but what do i type for specific feature or tag to run?

@jmoody
Copy link
Owner

jmoody commented May 19, 2015

# run the date picker tests
$ be cucumber -t @date_picker

# run the webview tests
$ be cucumber -t @webview

# list all the tags
$ be cucumber -d -f Cucumber::Formatter::ListTags

If you are looking for an example project that demonstrates best practices, please see: https://github.com/calabash/ios-smoke-test-app

This repo is very complicated.

@lummyare
Copy link
Author

Thanks

@lummyare
Copy link
Author

it doesnt recognise the "be" when i do be cucumber

@jmoody
Copy link
Owner

jmoody commented May 19, 2015

be is an alias for bundle exec.

If you don't have this alias defined in your unix environment, use:

$ bundle exec [command]

where ever you see be.

@lummyare
Copy link
Author

Oh Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants