This guide covers how to test MARR before publishing.
testuser account (for isolated testing)From your dev account:
cd /path/to/marr
npm run build
npm pack
This creates virtualian-marr-X.X.X.tgz.
# Switch to testuser
sudo su - testuser
# Run the test script
bash /path/to/marr/tests/testuser/test-in-testuser.sh
The test script:
marr --versionmarr init --user and verifies filesmarr init --project and verifies filesmarr validatemarr clean --dry-run# In testuser account
bash /path/to/marr/tests/testuser/cleanup-testuser.sh
Create a standard user account named testuser via System Preferences.
sudo su - testuser
bash /path/to/marr/tests/testuser/setup-testuser.sh
This installs nvm and Node.js 18.
The testuser needs read access to the marr directory:
# From dev account
chmod -R o+rX /path/to/marr
If you prefer testing specific commands:
# In testuser account
npm install -g /path/to/marr/virtualian-marr-X.X.X.tgz
# Test individual commands
marr --version
marr init --user
marr init --project --force
marr validate
marr clean --project --dry-run
Before each release, verify:
marr init --user creates ~/.claude/marr/ and helper scriptsmarr init --project creates .claude/marr/ with standardsmarr validate passes on a fresh projectmarr clean removes files correctly“marr: command not found” — Load nvm: source ~/.nvm/nvm.sh
Permission denied on npm install — Use nvm, not system Node.js
Tarball not found — Run npm pack in the marr directory first