James Wampler 117fc3bde7 Add unit tests for MicCheck.Api.Common, exclude untestable endpoint glue
ApiKeyService had zero coverage despite real logic (key generation,
hashing, org-scoped revoke). Also filled branch gaps in AuthService
(logout with unknown token) and the auth handlers (empty header
values).

ApiKeyEndpoints/AuthEndpoints are marked [ExcludeFromCodeCoverage]:
they're minimal-API route registration that needs a live HTTP
pipeline to exercise, which CLAUDE.md disallows (no
WebApplicationFactory/InMemory). Their branch logic is already
covered via the underlying service unit tests.

Raises the namespace from 66% to 91%. Remaining gap is plain
positional records with no logic (LoginRequest, PagedResult, etc.) -
left untested per CLAUDE.md's guidance against coverage-only tests.
2026-07-05 13:17:48 -07:00
2026-07-02 12:42:46 -07:00
2026-07-01 13:30:07 -07:00
2026-07-01 13:30:07 -07:00
2026-07-01 13:30:07 -07:00
2026-07-01 13:30:07 -07:00
2026-07-01 13:30:07 -07:00
2026-07-01 13:30:07 -07:00
2026-07-02 12:42:46 -07:00
2026-07-02 12:42:46 -07:00

MicCheck

GitHub CI Gitea CI Coverage

Open source feature flag management platform. Manage projects, environments, feature flags, segments, and identities across your apps.

Built with .NET (API) and Vue.js + Vuetify (admin UI).

Structure

src/
  api/MicCheck.Api/        .NET API — REST endpoints, organized by feature (Features, Projects, Environments,
                            Segments, Identities, Organizations, Webhooks, Audit, Users)
  admin/                    Vue.js + Vuetify admin SPA
  MicCheck.AppHost/         .NET Aspire orchestration host for local dev
  MicCheck.ServiceDefaults/ Shared .NET Aspire service defaults (telemetry, health checks)
tests/
  api/MicCheck.Api.Tests.Unit/         Unit tests
  api/MicCheck.Api.Tests.Integration/  Integration tests
docs/
  admin/                    Admin implementation plans/output docs
  api/                      API implementation plans/output docs

Code in the API is organized by feature area (e.g. Features, Segments, Identities) rather than by technical layer.

Running locally

docker-compose.yml provides supporting services. MicCheck.AppHost (.NET Aspire) orchestrates the API and admin app for local development.

./dev-build.sh

Testing

dotnet test

License

MIT — see LICENSE.

Description
No description provided
Readme MIT 9.2 MiB
Languages
C# 36.2%
Vue 30.3%
TypeScript 15.6%
SCSS 15.2%
JavaScript 1.4%
Other 1.3%