Skip to content
This repository has been archived by the owner on Feb 1, 2018. It is now read-only.

Upgrading from v1 to v2

Bradley Grzesiak edited this page Sep 13, 2013 · 5 revisions

Version 2 of bwoken deprecates rake as the invocation mechanism. Version 2.2 will completely remove invocation via rake. Instead, you use the bwoken executable.

Passing arguments

Running focused tests

This is for when you only want to run one test in particular on all device types (iPhone and iPad).

Old way (v1):

$ RUN=iphone/focused_test rake

New way (v2):

$ bwoken --focus=focused_test --family=iphone
# or if you want to run the focused test on all devices...
$ bwoken --focus=focused_test # not possible in v1, I think?

Specify a device

This is for when you only want to run tests on either the iPhone or iPad simulator.

Old way (v1):

$ FAMILY=iphone rake

New way (v2):

$ bwoken --family=iphone

Force simulator

If you have an iDevice attached via USB, bwoken will automatically run tests on it. If you don't want that, you can force bwoken to use the simulator.

Old way (v1):

$ SIMULATOR=true rake

New way (v2):

$ bwoken --simulator