Mora
Mora is a code coverage tracker that integrates with source code management systems (GitHub, Gitea) to monitor and display code coverage for repositories.
Install
go install github.com/iszk1215/mora@latest
Usage
Start the web server
mora web
Options:
-p, --port - Port number (default: 4000)
-c, --config - Config file path (default: mora.conf)
-d, --debug - Enable debug logging
Commands
mora web # Start web server
mora coverage # Coverage related commands
mora udm # User Defined Metrics commands
Configuration
Create a mora.conf file (TOML format) to configure the server and SCM integrations.
UDM (User Defined Metrics)
Track custom metrics with a three-level structure:
- Metric - Define a metric (e.g., "performance")
- Item - Add items to a metric (e.g., "response-time")
- Value - Record values over time (revision, timestamp, value)
CLI usage:
mora udm metric --create metricName/itemName --type int
mora udm metric --list
mora udm value --add metricName/itemName "123"
mora udm value --list metricName/itemName
Development
See AGENTS.md for build commands, test instructions, and project structure.
Quick start for developers
make run # Run tests and start server with debug mode
make check # Run linter
make test # Run all tests