@mobilewright/test 0.0.67 → 0.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ If you've used Playwright, you already know Mobilewright.
|
|
|
57
57
|
| Setup | `npm install mobilewright` | Server + drivers + caps | React Native only | Xcode/AS only |
|
|
58
58
|
| Cross-platform | iOS + Android, one API | Yes, verbose | React Native only | Single platform |
|
|
59
59
|
| AI agent support | First-class (accessibility tree) | Limited | No | No |
|
|
60
|
-
| Real devices in the cloud |
|
|
60
|
+
| Real devices in the cloud | [Mobile Next Cloud](https://mobilenext.ai/cloud?utm_source=github&utm_medium=readme&utm_campaign=mobilewright&utm_content=comparison), [BrowserStack](https://mobilewright.dev/docs/cloud-providers/browserstack), [Sauce Labs](https://mobilewright.dev/docs/cloud-providers/saucelabs), [TestMu AI](https://mobilewright.dev/docs/cloud-providers/testmu), [TestingBot](https://mobilewright.dev/docs/cloud-providers/testingbot) | Yes (complex) | Simulators only | Yes |
|
|
61
61
|
| Locators | Semantic roles + labels | XPath, CSS, ID | Test IDs | Native queries |
|
|
62
62
|
|
|
63
63
|
## Built for AI agents
|
|
@@ -401,6 +401,9 @@ All options:
|
|
|
401
401
|
| `outputDir` | `string` | Output directory for test artifacts. Default: `test-results` |
|
|
402
402
|
| `reporter` | `'list' \| 'html' \| 'json' \| 'junit' \| Array` | Reporter to use (optional) |
|
|
403
403
|
| `retries` | `number` | Maximum retry count for flaky tests (optional) |
|
|
404
|
+
| `repeatEach` | `number` | Run each test this many times. Default: `1` |
|
|
405
|
+
| `maxFailures` | `number` | Stop the run after this many failures. Default: `0` (no limit) |
|
|
406
|
+
| `failOnFlakyTests` | `boolean` | Fail the run if any test is flagged as flaky. Default: `false` |
|
|
404
407
|
| `workers` | `number \| string` | Number of concurrent workers (optional) |
|
|
405
408
|
| `fullyParallel` | `boolean` | Run all tests in parallel. Default: `false` |
|
|
406
409
|
| `use` | `MobilewrightUseOptions` | Per-action defaults applied to all tests (optional) |
|
|
@@ -571,6 +574,8 @@ npx mobilewright test --grep "sign in" # filter by test name
|
|
|
571
574
|
npx mobilewright test --reporter html # generate HTML report
|
|
572
575
|
npx mobilewright test --retries 2 # retry flaky tests
|
|
573
576
|
npx mobilewright test --workers 4 # parallel workers
|
|
577
|
+
npx mobilewright test --repeat-each 20 # run each test 20 times
|
|
578
|
+
npx mobilewright test -x # stop after the first failure
|
|
574
579
|
npx mobilewright test --list # list tests without running
|
|
575
580
|
```
|
|
576
581
|
|
|
@@ -592,11 +597,15 @@ npx mobilewright merge-reports ./blob-reports # merge into an HTML report
|
|
|
592
597
|
npx mobilewright merge-reports ./blob-reports --reporter json
|
|
593
598
|
```
|
|
594
599
|
|
|
595
|
-
## Run on real devices
|
|
600
|
+
## Run on real devices in the cloud
|
|
596
601
|
|
|
597
|
-
|
|
602
|
+
The same tests that run on a local device run on real devices in the cloud. Only the `driver` in `mobilewright.config.ts` changes. Mobilewright supports these device clouds:
|
|
598
603
|
|
|
599
|
-
Mobile Next Cloud
|
|
604
|
+
- **[Mobile Next Cloud](https://mobilenext.ai/cloud?utm_source=github&utm_medium=readme&utm_campaign=mobilewright&utm_content=cloud-section)**, built by the Mobilewright team. API access to hundreds of real Android and iOS devices, with test results uploaded to your dashboard automatically. [Setup guide](https://mobilewright.dev/docs/cloud-providers/mobile-next-cloud)
|
|
605
|
+
- **[BrowserStack](https://mobilewright.dev/docs/cloud-providers/browserstack)**, App Automate sessions via the `@browserstack/mobilewright` driver
|
|
606
|
+
- **[Sauce Labs](https://mobilewright.dev/docs/cloud-providers/saucelabs)**, real Android and iOS devices via the `@saucelabs/mobilewright-driver` package
|
|
607
|
+
- **[TestMu AI](https://mobilewright.dev/docs/cloud-providers/testmu)**, real Android and iOS devices via the `@testmuai/mobilewright` driver
|
|
608
|
+
- **[TestingBot](https://mobilewright.dev/docs/cloud-providers/testingbot)**, real devices, emulators and simulators via the `@testingbot/mobilewright-driver` package
|
|
600
609
|
|
|
601
610
|
## Telemetry
|
|
602
611
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mobilewright/test",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.69",
|
|
4
4
|
"description": "Test fixtures for Mobilewright",
|
|
5
5
|
"homepage": "https://mobilewright.dev",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@mobilewright/core": "^0.0.
|
|
33
|
-
"@mobilewright/protocol": "^0.0.
|
|
32
|
+
"@mobilewright/core": "^0.0.69",
|
|
33
|
+
"@mobilewright/protocol": "^0.0.69",
|
|
34
34
|
"@playwright/test": "1.63.0",
|
|
35
35
|
"debug": "^4.4.3",
|
|
36
|
-
"mobilewright": "^0.0.
|
|
36
|
+
"mobilewright": "^0.0.69"
|
|
37
37
|
}
|
|
38
38
|
}
|