Skip to content

Commit

Permalink
Add monkeyPaws command line flag on test case
Browse files Browse the repository at this point in the history
An explanation to enable monkeyPaws with the command line flag adding code on testCase file
  • Loading branch information
nathanmrtns authored Apr 20, 2018
1 parent d5cf644 commit c89ddab
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 c89ddab

Please sign in to comment.