Events are used to provide insights on the how testers use your apps.

These can help you keep track of when a tester reaches key points in your app, such as visiting the in-app store.

Syntax

To add an event to your timeline, all you need to do is this:

TestFairy.addEvent("<event name>");

Code Example

public class MyActivity extends Activity {
    private void onPurchaseComplete() {
        TestFairy.addEvent("Purchase OK");
    }
}
            

Syntax

To add an event to your timeline, all you need to do is this:

[TestFairy addEvent:@"<event name>"];

Code Example

@implementation ViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    [TestFairy addEvent:@"Purchase OK"];
    //...
}
// ...
@nd
            

Syntax

To add an event to your timeline, all you need to do is this:

TestFairy.addEvent("<event name>");

Code Example

const TestFairy = require('react-native-testfairy');
var MyComponent = React.createClass({
    componentDidMount: function() {
        TestFairy.addEvent("Purchase OK");
    }
});
            

By adding the line above, a new column in your Build Coverage Report page will appear, titled according to the event (in this case "Purchase OK").

Please remember that events are rendered in a table, consider using indicative names and keep them short.