Skip to content

Build Format and Test

alsi-lawr edited this page Jul 15, 2026 · 1 revision

Build, format, and test

Restore and build

dotnet restore BlokeBot.slnx --disable-parallel
dotnet build BlokeBot.slnx --no-restore --disable-parallel -warnaserror

Format

dotnet tool restore
dotnet csharpier format .
dotnet csharpier check .

CSharpier is the sole C# formatter. Run the check before committing.

Test

BlokeBot uses TUnit on Microsoft Testing Platform:

dotnet test BlokeBot.slnx --no-restore --disable-parallel -v:minimal

For focused Microsoft Testing Platform runs, use --treenode-filter; do not use the legacy VSTest --filter option.

Test-project boundaries

Project Focus
BlokeBot.Commands.Tests Command composition, dispatch, aliases, and moderator policy
BlokeBot.Eventing.Tests Event publication and observer fan-out
BlokeBot.Functional.Tests Functional primitives used by the application
BlokeBot.Integration.Tests Cross-boundary OAuth and durable-delivery behavior
BlokeBot.Persistence.Tests SQLite persistence behavior
BlokeBot.Tests Core application and feature behavior
BlokeBot.Twitch.Auth.Tests OAuth identity, tokens, and transport
BlokeBot.Twitch.Runtime.Tests IRC, EventSub, chat delivery, and runtime recovery
BlokeBot.Twitch.Tests Twitch HTTP transport
BlokeBot.UI.Tests Blazor feature behavior and fault routing
BlokeBot.Testing Shared fixtures; not a test assembly

Prefer tests of owned behavior. Do not add reflection-based shape tests, framework-behavior tests, or tests that merely restate plainly visible code.

Clone this wiki locally