GitAuto Logo
  • Dashboard
  • Overview
  • Coverage Trends
  • File Coverage
  • Usage
  • Credits
  • Pull Requests
  • Settings
  • General
  • Triggers
  • Rules
  • References
  • Actions
  • Model
  • Integrations
  • CircleCI
  • npm
  • Links
  • Docs
  • Back to Home

Rules Settings

Edit scope

Docs

When off, the agent can only edit test files. Implementation files are protected: edits are rejected, and any coverage gap caused by dead code is accepted instead of the loop trying to reach 100%.

Comment Rules

Docs

Include explanatory comments in test files created by GitAuto

Test File Location and Naming Rules

Docs

Choose where test files should be placed relative to source files

Choose how test files should be named

Test Constants Rules

Docs

How to handle commonly used test constants

Unit Test Rules

Docs

Prefer functional programming patterns in tests

Generate tests for edge cases, error conditions, and boundary values

Allow GitAuto to refactor and improve source code structure before generating tests to keep the test code clean and readable

Component Test Rules

Docs

Use functional components in test code when possible

Test components in isolation from their dependencies by mocking or stubbing external dependencies

Mock external APIs, services, and third-party libraries in component tests

Repository Rules

Define repository-specific guidelines that apply across all issues and users within the repository. Write any coding standards, preferences, or requirements that GitAuto should follow when generating tests for this repository.

0 / 5000 characters0 tokens