Skip to content

Set up testing infrastructure and CI/CD pipeline #8

Open

Description

@scttfrdmn

Overview

Establish comprehensive testing infrastructure and continuous integration pipeline.

Tasks

Go Testing

  • Add unit tests for agent and backend
  • Set up table-driven test patterns
  • Configure test coverage reporting
  • Add integration test suite
  • Set up test fixtures in testdata/

Web Testing

  • Configure Playwright for E2E tests
  • Write initial E2E test scenarios
  • Set up component testing
  • Add visual regression testing

CI/CD Pipeline

  • Enhance GitHub Actions workflow
  • Add test matrix (Go versions, OS)
  • Add codecov integration
  • Set up automated linting
  • Add Docker image builds
  • Configure release automation

Quality Gates

  • Enforce test coverage thresholds
  • Add pre-commit hook enhancements
  • Set up branch protection rules

Success Criteria

  • All tests pass in CI
  • Coverage reports generated
  • E2E tests run automatically
  • PRs require passing tests
  • Release process automated

Related

See ROADMAP.md Phase 1

Activity

  1. added this to the v0.1.0 - Foundation milestone on Dec 10, 2025
  2. added
    priority:medium
    type:test
    component:cli
    component:web
    on Dec 10, 2025
  3. scttfrdmn commented on Apr 30, 2026

    @scttfrdmn
    CollaboratorAuthor

    CI/CD pipeline is now substantially complete. Fixed in this session:

    • Go version: '1.23' → go-version-file: go.mod across all workflows (auto-tracks go.mod)
    • DB name: ark_test → qualify_test
    • Binary path: ./bin/ark-backend → ./bin/qualify-backend
    • check.yml trigger: now runs on all pushes (including main for solodev workflow)
    • Unit tests: 8 tests for renderText/wrapText in cmd, 4 tests in localaudit
    • Pre-commit hooks run fmt, vet, staticcheck, short tests on every commit

    Remaining: E2E Playwright tests need test scenario files written; integration tests with LocalStack need //go:build integration tagged files.

  4. added
    status:needs-info
    on Jun 8, 2026
  5. scttfrdmn commented on Jun 8, 2026

    @scttfrdmn
    CollaboratorAuthor

    Triage update (2026-06-08): the CI/CD half is done — check.yml, test.yml, and release.yml are live and green on main (the only red run was the non-blocking Playwright E2E job hitting an unauthenticated backend). go1.26.4 toolchain bump in PR #37.

    What's still open under this issue is unit-test coverage: internal/agent/*, internal/database, internal/license, internal/config, and internal/audit have no tests. Suggest narrowing this issue to 'unit-test coverage for untested packages' and closing out the CI/CD setup portion, or splitting them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component:clicomponent:webpriority:mediumstatus:needs-infotype:test

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions