Testing
Addfox has built-in support for Rstest and recommends running tests through addfox test.
Check dependencies first
Before running tests, make sure required dependencies are installed:
For browser E2E tests, also install:
Unified command
Use:
This runs tests through the Addfox test workflow instead of manually wiring low-level commands.
Unit Tests
Best for:
- utility functions
- message handlers
- storage/state logic
Common file naming:
*.test.ts*.spec.ts
E2E Tests
Best for:
- extension loading checks
- popup/content/background integration flows
- user-facing regression paths
Run E2E as part of CI or release validation.

