proagents 1.6.2 → 1.6.3
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.
|
@@ -1990,7 +1990,56 @@ For `pa:alias-add`:
|
|
|
1990
1990
|
**How to execute Mobile Test Suite commands:**
|
|
1991
1991
|
|
|
1992
1992
|
For `pa:test-mobile`:
|
|
1993
|
-
1.
|
|
1993
|
+
1. **FIRST: Check required tools are installed (FAIL if missing, do NOT skip):**
|
|
1994
|
+
```
|
|
1995
|
+
Checking required tools...
|
|
1996
|
+
✓ Node.js (v18.0.0)
|
|
1997
|
+
✓ Jest / Vitest
|
|
1998
|
+
✓ React Native Testing Library
|
|
1999
|
+
✗ MISSING: Maestro - Required for E2E tests
|
|
2000
|
+
✗ MISSING: Detox - Required for E2E tests
|
|
2001
|
+
|
|
2002
|
+
══════════════════════════════════════════════════════════
|
|
2003
|
+
ERROR: Missing required tools. Cannot run mobile test suite.
|
|
2004
|
+
══════════════════════════════════════════════════════════
|
|
2005
|
+
|
|
2006
|
+
Install missing tools manually:
|
|
2007
|
+
brew install maestro
|
|
2008
|
+
npm install -g detox-cli
|
|
2009
|
+
|
|
2010
|
+
Or let me install them for you:
|
|
2011
|
+
→ Type "yes" to auto-install missing tools
|
|
2012
|
+
→ Type "no" to cancel
|
|
2013
|
+
|
|
2014
|
+
Or run with limited tests:
|
|
2015
|
+
pa:test-mobile --unit-only (skip E2E tests)
|
|
2016
|
+
pa:test-mobile --skip-visual (skip visual tests)
|
|
2017
|
+
```
|
|
2018
|
+
|
|
2019
|
+
**IMPORTANT:** Never silently skip tests due to missing tools. Always:
|
|
2020
|
+
- Show clear error about what's missing
|
|
2021
|
+
- Provide installation instructions for each missing tool
|
|
2022
|
+
- Offer to auto-install missing tools (ask user permission first)
|
|
2023
|
+
- Fail the test suite if user declines (exit code 1)
|
|
2024
|
+
- Offer alternative flags (--unit-only, --skip-e2e, --skip-visual)
|
|
2025
|
+
|
|
2026
|
+
**Auto-install behavior:**
|
|
2027
|
+
If user agrees to auto-install:
|
|
2028
|
+
```
|
|
2029
|
+
Installing missing tools...
|
|
2030
|
+
|
|
2031
|
+
Installing Maestro...
|
|
2032
|
+
→ curl -Ls "https://get.maestro.mobile.dev" | bash
|
|
2033
|
+
✓ Maestro installed successfully
|
|
2034
|
+
|
|
2035
|
+
Installing Detox CLI...
|
|
2036
|
+
→ npm install -g detox-cli
|
|
2037
|
+
✓ Detox CLI installed successfully
|
|
2038
|
+
|
|
2039
|
+
All tools installed. Running test suite...
|
|
2040
|
+
```
|
|
2041
|
+
|
|
2042
|
+
2. If all tools present, run comprehensive mobile test suite:
|
|
1994
2043
|
```
|
|
1995
2044
|
Mobile Test Suite
|
|
1996
2045
|
═════════════════
|
|
@@ -2046,7 +2095,7 @@ For `pa:test-mobile`:
|
|
|
2046
2095
|
Run `pa:test-auto-fix` to automatically fix these issues.
|
|
2047
2096
|
```
|
|
2048
2097
|
|
|
2049
|
-
|
|
2098
|
+
3. Generate detailed test report at `./.proagents/test-reports/mobile-{timestamp}.md`
|
|
2050
2099
|
|
|
2051
2100
|
For `pa:test-visual`:
|
|
2052
2101
|
1. Take screenshots of all screens/components
|