You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The callback to `browserstackRunner.run` is called with two params -
45
+
1.`error`: This parameter is either `null` or an `Error` object (if test execution failed) with message as the reason of why executing the tests on `BrowserStack` failed.
46
+
2.`report`: This is an object which can be used to keep track of the `failed assertions` and the total count of `passed/failed` tests specific to a browser instance.
47
+
48
+
The structure of the `report` object is as follows -
"source": " at Object.<anonymous> (http://localhost:8888/tests/test.js:5:10)"
90
+
},
91
+
{
92
+
"actual": false,
93
+
"expected": true,
94
+
"message": "One is an odd number",
95
+
"source": " at Object.<anonymous> (http://localhost:8888/tests/test.js:4:10)"
96
+
},
97
+
{
98
+
"actual": false,
99
+
"expected": true,
100
+
"message": "Zero is not odd number",
101
+
"source": " at Object.<anonymous> (http://localhost:8888/tests/test.js:6:10)"
102
+
}
103
+
],
104
+
"tests": [
105
+
{
106
+
"runtime": 9,
107
+
"total": 1,
108
+
"passed": 0,
109
+
"failed": 1,
110
+
"url": "/sample.html"
111
+
}
112
+
]
113
+
}
114
+
}
115
+
```
116
+
24
117
## Configuration
25
118
26
119
To run browser tests on BrowserStack infrastructure, you need to create a `browserstack.json` file in project's root directory (the directory from which tests are run), by running this command:
0 commit comments