# Test Matrix

Use this matrix to choose the narrowest useful run profile.

| Profile | Pytest target | Use for |
| --- | --- | --- |
| `seed` | `-m e2e_seed` | Create or refresh account data in `runtime/e2e_accounts.json`. |
| `standalone` | `-m e2e_standalone` | Smoke tests that can be launched directly. |
| `chain` | `-m e2e_chain` | Continue ledger-dependent flows after seed/opening steps exist. |
| `main` | `e2e/tests/组合大流程/test_e2e_main_001_full_closed_loop.py` | Full registration, opening, authorization, dispatch, order loop. |
| `saas-001` | `-m e2e_saas_001` | Enterprise registration and certification. |
| `saas-003` | `-m e2e_saas_003` | Wanyouji app opening. |
| `saas-004` | `-m e2e_saas_004` | Wanzhanggui app opening. |
| `auth` | `-m e2e_auth_closed_loop` | Authorization key generation, activation, and permissions. |
| `push` | `-m "e2e_push_001 or e2e_push_003"` | Workshop authorization and dispatch strategy. |
| `order` | `-m "e2e_order_001 or e2e_order_002"` | Manual order dispatch and revoke verification. |

Before running `chain`, `auth`, `push`, or `order`, inspect account state:

```powershell
.\.venv\Scripts\python.exe .\scripts\agent_e2e.py accounts
```

Use recent bug reports as the first failure artifact:

```powershell
.\.venv\Scripts\python.exe .\scripts\agent_e2e.py bugs --limit 3
```
