|
| 1 | +# AGENTS |
| 2 | + |
| 3 | +This file defines contributor expectations for building, testing, regression safety, and release-note hygiene. |
| 4 | + |
| 5 | +## Build, Test, and Non-Regression |
| 6 | + |
| 7 | +Use these commands before opening or updating a PR: |
| 8 | + |
| 9 | +- Build: `make build` |
| 10 | +- Full test suite: `make test` |
| 11 | +- Non-regression smoke tests (all samples): `make smoke-tests` |
| 12 | + |
| 13 | +Equivalent direct commands: |
| 14 | + |
| 15 | +- `dotnet build FScript.sln -c Release` |
| 16 | +- `dotnet test FScript.sln -c Release` |
| 17 | + |
| 18 | +Targeted test suites (when working on specific areas): |
| 19 | + |
| 20 | +- Language: `dotnet test tests/FScript.Language.Tests/FScript.Language.Tests.fsproj -c Release` |
| 21 | +- Runtime: `dotnet test tests/FScript.Runtime.Tests/FScript.Runtime.Tests.fsproj -c Release` |
| 22 | +- Language Server / VS Code features: `dotnet test tests/FScript.LanguageServer.Tests/FScript.LanguageServer.Tests.fsproj -c Release` |
| 23 | + |
| 24 | +## Test Quality Policy |
| 25 | + |
| 26 | +- Every new feature must include automated test coverage. |
| 27 | +- Every bug fix must include a regression test reproducing the prior failure mode. |
| 28 | +- Add tests in the suite matching the change surface: |
| 29 | + - Parser/type/eval semantics -> `tests/FScript.Language.Tests` |
| 30 | + - Runtime and host behavior -> `tests/FScript.Runtime.Tests` |
| 31 | + - LSP/editor behavior -> `tests/FScript.LanguageServer.Tests` |
| 32 | +- If language behavior, includes, or sample contracts change, run `make smoke-tests`. |
| 33 | + |
| 34 | +## Release Notes (Unreleased) |
| 35 | + |
| 36 | +- `CHANGELOG.md` must keep a top `## [Unreleased]` section. |
| 37 | +- Each new feature/fix entry must be a short, single-line bullet. |
| 38 | +- Write entries in user-facing terms (what changed), not implementation detail. |
| 39 | +- At release time, move unreleased entries to the versioned section and reset `Unreleased`. |
| 40 | + |
| 41 | +## PR Checklist |
| 42 | + |
| 43 | +- Build passes. |
| 44 | +- Relevant test suite(s) pass. |
| 45 | +- New behavior is test covered. |
| 46 | +- Regression risk is covered by tests (including smoke tests when relevant). |
| 47 | +- `CHANGELOG.md` `## [Unreleased]` has concise one-line entries for the change. |
0 commit comments