MotionBlow - High-fiber formula for your RubyMotion dumps!
Tired of generating your screen dumps by hand for your appstore submissions? MotionBlow makes it easy to get all the hi-res screen dumps for your app across all your supported devices.
For the star-gizzards ;-)
> git clone https://github.com/derailed/motion-blow.git
> cd motion-blow
> bundle
> rake motion:blow
Installation
gem install motion-blow
Usage
MotionBlow leverages MacBacon to exercise your app legs and makes it a snap to capture the essence of your various screens.
Create a test runner
Make a directory spec/snapshot and add your screen driving spec.
NOTE: The naming must be just right so MotionBlow can pick up your spec runner!
# spec/snapshot/blow.rb
describe 'ColonBlow' do
include MotionBlow
tests MyTopLevelViewController
it "dumps all my screens correctly" do
# Take the snapshot
snap!
# Nav somewhere else
tap( 'chain' )
# Take a new snapshot
snap!
...
# Done bail out of the simulator
flush!
end
end
Run it!
> rake motion:blow
MotionBlow creates a spec/snapshot/pngs/device_xxx directory containing all the screen shots per the specification of your snap! calls.
You can then upload your favorite app snapshots and you're done!
Contact
Fernand Galiana
License
MotionBlow is released under the MIT license.
History
- 0.0.1:
- Initial drop