Build:
dotnet build OpenVoting.Server/OpenVoting.Server.csprojTests:
dotnet test OpenVoting.Server.Tests/OpenVoting.Server.Tests.csprojMigrations:
dotnet ef migrations add <Name> --project OpenVoting.Server --startup-project OpenVoting.Server
dotnet ef database update --project OpenVoting.Server --startup-project OpenVoting.ServerFrom OpenVoting.Client:
npm run lint
npm run test
npm run buildFrom repo root:
./scripts/Run-PlaywrightTests.ps1 -TestType Smoke
./scripts/Run-PlaywrightTests.ps1 -TestType FullUse Smoke for the fast seeded sanity pass that checks the main authenticated routes and seeded poll data.
Use Full for broader end-to-end coverage of admin and voter flows, including poll creation, lifecycle transitions, entry submission, moderation, voting, history, and cleanup.
The runner script:
- Provisions a temporary PostgreSQL Docker container unless one is explicitly kept
- Seeds shared Playwright test data through
scripts/test-seed.cs - Starts the backend and frontend dev servers with the correct test environment variables
- Runs the requested Playwright suite and then cleans up the temporary test infrastructure
CI currently runs the Smoke suite on every build. The Full suite is available for deeper local verification and future CI expansion.