Skip to content

Add tests for all commands #18

Closed

Description

@ajianaz

Description

Increase test coverage across all cora-cli commands and modules.

Acceptance Criteria

  • Unit tests for all public functions in scanner.rs, reviewer.rs, formatter.rs, config.rs
  • Integration tests for all CLI commands (review, scan, config, completion)
  • Test edge cases: empty diffs, large files, API errors, malformed config
  • Minimum 80% code coverage

Implementation Notes

  • Use assert_cmd for CLI integration tests
  • Use mockall or wire mocks for LLM API testing
  • Add CI coverage reporting with tarpaulin or llvm-cov

Activity

  1. added
    testing
    on May 30, 2026
  2. ajianaz commented on May 30, 2026

    @ajianaz
    CollaboratorAuthor

    Implemented in PR #24, merged to develop.

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

    testing

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions