reduces bugs it helps to produce good code it proves your code is working as supposed to tests are documentation to your code it makes easy to maintain your code ...
= app.mainWindow(); // tap the left button in the navigation bar window.navigationBars()[0].leftButton().tap(); // assert that the app has navigated into a sub-view controller assertEquals("Settings", window.navigationBars()[0].value()); });
tabbar $('tabbar > text'); // all buttons inside the window named 'Main' $('window[name=Main] button') // the text field with a value of 'Search' $('textfield[value=Search]') // all buttons plus a specific element by name $('button, #Continue')
you to run tests with CoffeeScript fill = (container, liquid = "coffee") -> "Filling the #{container} with #{liquid}..." var fill; fill = function(container, liquid) { if (liquid == null) { liquid = "coffee"; } return "Filling the " + container + " with " + liquid + "..."; };
params to the app. desc "Run tests" task :run_tests do ENV['INSTRUMENTS'] = "-‐e TEST_MODE 1" Rake::Task[:default].invoke end Add a new task to your Rakefile: https://github.com/carezone/bwoken/commit/195f2f9
‘before all, ‘after each’, ‘after all’ blocks mocks objects that imitate a class, or look like they conform a protocol stubs return canned responses on method calls
source community language: objective-‐c before_install: -‐ brew update -‐ brew install xctool script: xctool test Setup for open source project Add .travis.yml file at root of your repository
source community Login at http://travis-ci.org and enable it Add .travis.yml file at root of your repository Setup for open source project Add nice status picture to your README