Skip to content
Myr

[meta] Align and enhance AGENTS.md instructions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

References: - https://agents.md - https://github.com/agentsmd/agents.md - https://github.blog/ai-and-ml/github-copilot/how-to-write-a-great-agents-md-lessons-from-over-2500-repositories/

authored by Peter Dave Hello · committed by Jordan Harband · parent e11221d · Browse files · 1 file+23 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+23 added−3 removed

  • other:+23 added−3 removed

1 file+23 added−3 removed

modified:AGENTS.md+23 added-3 removed
184 unmodified lines
185```186187#### Run All Tests188```bash189npm test # Runs tests in current shell (sh, bash, dash, zsh, ksh)190make test # Runs tests in all supported shells (sh, bash, dash, zsh, ksh)189npm test # Runs tests in the current shell only (sh, bash, dash, zsh)190make test # Runs tests in default shells (sh, bash, dash, zsh)191make test-sh # Runs tests only in sh192make test-bash # Runs tests only in bash193make test-dash # Runs tests only in dash194make test-zsh # Runs tests only in zsh195make test-ksh # Runs tests only in ksh195make SHELLS=ksh test # Runs tests only in ksh (experimental, see issue #574)196```197198#### Run Specific Test Suites199```bash200npm run test/fast # Runs fast tests in the current shell201npm run test/slow # Runs slow tests in the current shell202npm run test/sourcing # Runs sourcing tests in the current shell203npm run test/install_script # Runs install script tests in the current shell204npm run test/installation # Runs installation tests (node + iojs) in the current shell205npm run test/installation/node # Runs Node installation tests in the current shell206npm run test/installation/iojs # Runs io.js installation tests in the current shell207make TEST_SUITE=fast test # Only fast tests208make TEST_SUITE=slow test # Only slow tests209make SHELLS=bash test # Only bash shell210```
4 unmodified lines
215./node_modules/.bin/urchin test/fast/ # Run fast test suite216./node_modules/.bin/urchin 'test/fast/Unit tests/nvm_get_arch' # Run single test safely without shell termination217./node_modules/.bin/urchin test/slow/ # Run slow test suite218./node_modules/.bin/urchin test/sourcing/ # Run sourcing test suite219./node_modules/.bin/urchin test/install_script/ # Run install script test suite220./node_modules/.bin/urchin test/installation_node/ # Run Node installation test suite221./node_modules/.bin/urchin test/installation_iojs/ # Run io.js installation test suite222```223224#### Linting and Docs Checks225```bash226npm run eclint # Checks EditorConfig compliance227npm run doctoc:check # Verifies README table of contents228npm run dockerfile_lint # Lints the Dockerfile229npm run test:check-exec # Checks test files have executable permission230npm run test:check-nonexec # Checks non-test files don't have executable permission231npm run markdown-link-check # Validates markdown links (requires markdown-link-check)232```233234### Test Writing Guidelines235- Tests should work across all supported shells (sh, bash, dash, zsh, ksh)236- Define and use a `die()` function for test failures237- Clean up after tests in cleanup functions
210 unmodified lines