Skip to content

Commit 865a213

Browse files
amis92Copilot
andcommitted
Update AGENTS.md with generator test docs
Add generator test command to Build & test section and add a new 'Modify generators/analyzers' task to Common tasks. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5c38d7a commit 865a213

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ git submodule update --init # first time (required)
2525
dotnet restore && dotnet build # build all
2626
dotnet test # all tests
2727
dotnet test tests/WarHub.ArmouryModel.RosterEngine.Tests/ # conformance only
28+
dotnet test tests/WarHub.ArmouryModel.Concrete.Extensions.Generators.Tests/ # generator/analyzer tests
2829
dotnet pack # NuGet packages (Release mode)
2930
```
3031

@@ -162,6 +163,13 @@ Extensions, Concrete.Extensions, Concrete.Extensions.Generators, EditorServices,
162163
- `.github/workflows/ci.yml` — main CI (build, test, pack)
163164
- `.github/workflows/publish.yml` — NuGet publishing
164165

166+
**Modify generators/analyzers (Concrete.Extensions.Generators):**
167+
1. Generator project is netstandard2.0 (Roslyn requirement) — no records, no
168+
`ImmutableArray` collection expressions, explicit `using` directives needed
169+
2. Make changes in `src/WarHub.ArmouryModel.Concrete.Extensions.Generators/`
170+
3. Run generator tests: `dotnet test tests/WarHub.ArmouryModel.Concrete.Extensions.Generators.Tests/`
171+
4. Run consuming project tests: `dotnet test tests/WarHub.ArmouryModel.Concrete.Extensions.Tests/`
172+
165173
## Known gotchas
166174

167175
- **Submodule required**: `git submodule update --init` before building

0 commit comments

Comments
 (0)