Skip to content

Commit

Permalink
Merge pull request zalando#59 from NathanMrtns/patch-1
Browse files Browse the repository at this point in the history
Adding explanation monkeyPaws explanation on readme
  • Loading branch information
wojciechczerski authored Sep 9, 2018
2 parents d5cf644 + c89ddab commit eaee94f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@ but any time after you have a UIWindow will do. It also only
instatiates the visualisation if a certain command line flag
is passed, so that it can be enabled only for test runs.)

Using command line flags, If you want to enable MonkeyPaws on your
test case file you can add the following on yout testMonkey function:

````swift
let application = XCUIApplication()
 application.launchArguments = ["--MonkeyPaws"]
````

This call will swizzle some methods in UIApplication to capture
UIEvents. If you would rather not do this, or if you already have
a source of UIEvents, you can pass the following option to `init`
Expand Down

0 comments on commit eaee94f

Please sign in to comment.