Skip to content

Screenshot Tests

Stefan Arentz edited this page Mar 2, 2016 · 15 revisions

Things to know about Screenshot Tests

  • You can set enviroinment variables in the setUp() method. Currently only MOZ_SKIP_WHATSNEW and MOZ_WIPE_PROFILE exist.
  • The setUp() function is called before every test runs? IS THIS CORRECT?
  • Create separate test functions to capture managable units. For example do not combine screenshots for many parts of the app in a single test. Instead create multiple tests.
  • The order of the tests is very important. Xcode runs the tests sorted by name. This is why the tests are currently numbered like func test01Intro() and func test02SettingsScreen().
Clone this wiki locally