August 2013
Intermediate to advanced
200 pages
5h 26m
English
We have our basic behavior test suites running on both device families in the simulator, but what if we want to run tests that require more-complicated setup? For instance, our sorting test expects a different set of search terms than the default. We already went through the trouble of building our data factory to generate these in Chapter 8, Setting Up Application Data, but we need a way to trigger methods on the factory with environment variables on the fly.
Let’s dig into the problem by building a new Rake task that lets us focus on running just one test from the command line. That way we can run this test over and over while we tweak things to get them to work:
| 10-CommandLine/step03/Rakefile ... |
Read now
Unlock full access