-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
41 lines (34 loc) · 1.15 KB
/
Justfile
File metadata and controls
41 lines (34 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Variables
binary_name := "rhino"
cmd_path := "./cmd/rhino"
# Build the binary
build:
go build -o {{binary_name}} {{cmd_path}}
# Clean build artifacts
clean:
@rm -f {{binary_name}}
# Start the server in development mode
dev:
@just build
@./{{binary_name}} server
# Run all tests
test count="1":
@echo "Running tests..."
@echo "Note: MCP integration tests require Rhino HTTP server running on port 9090"
go test -v -count={{count}} ./...
# Run only unit tests (fast, no external dependencies)
test-unit count="1":
@echo "Running unit tests..."
go test -short -v -count={{count}} ./...
# Run MCP integration tests (requires Rhino server on port 9090)
test-mcp count="1":
@echo "Running MCP integration tests..."
@echo "Prerequisites: Rhino HTTP server must be running on localhost:9090"
@echo "Start it with: just dev"
go test -v -count={{count}} ./pkg/mcp/
# Run tests with coverage
test-coverage count="1":
@echo "Running tests with coverage..."
go test -coverprofile=coverage.out -count={{count}} ./...
go tool cover -html=coverage.out -o coverage.html
@echo "Coverage report generated: coverage.html"