Back to list
washanhanzi

test

by washanhanzi

One Axum handler serves them ALL. Connect, gRPC, gRPC-Web, and HTTP.

11🍴 1📅 Jan 22, 2026

SKILL.md


name: test description: Run the complete test suite for connectrpc-axum. Use when the user asks to run tests, verify changes, or check if the code works.

test

Run the complete test suite for connectrpc-axum: unit tests, doc tests, and integration tests with Go clients.

Instructions

Run both test suites in order:

1. Unit Tests

cargo test

2. Integration Tests

Run from the repo root (use -C to avoid changing working directory):

go test -C connectrpc-axum-examples/go-client -v -timeout 300s

The Go tests:

  1. Build all Rust example servers (once, cached)
  2. Start each server, wait for it to be ready
  3. Run Go client tests against each server
  4. Validate responses match expected behavior

Success Criteria

Unit Tests: All tests pass with exit code 0

Integration Tests: All tests pass (PASS in output)

Integration Test Matrix

TestServerProtocolTest Type
TestConnectUnaryconnect-unaryConnectUnary
TestConnectServerStreamconnect-server-streamConnectServer streaming
TestTonicUnaryConnecttonic-unaryConnectUnary
TestTonicUnaryGRPCtonic-unarygRPCUnary
TestTonicServerStreamConnecttonic-server-streamConnectServer streaming
TestTonicServerStreamGRPCtonic-server-streamgRPCServer streaming
TestTonicBidiStreamConnectUnarytonic-bidi-streamConnectUnary
TestTonicBidiStreamGRPCtonic-bidi-streamgRPCBidi streaming
TestGRPCWebgrpc-webgRPC-WebUnary
TestStreamingErrorHandlingstreaming-error-reproConnectStream error handling
TestProtocolVersionprotocol-versionConnectProtocol header validation
TestTimeouttimeoutConnectConnect-Timeout-Ms enforcement
TestExtractorConnectErrorextractor-connect-errorConnectExtractor rejection with ConnectError
TestExtractorHTTPResponseextractor-http-responseConnectExtractor rejection with plain HTTP

Failure Handling

Unit test failures: Check the specific test name and error message

Integration test failures:

  1. Note which specific test failed from the output
  2. Check if the server started (look for "Server ready" message)
  3. Check the Go client error message for details
  4. Common issues:
    • Port 3000 already in use
    • Missing Go dependencies (run go mod tidy in go-client/)
    • Build errors (run cargo build --features tonic first)

Report Format

Unit Tests: [PASS/FAIL]
- Passed: X
- Failed: Y

Integration Tests: [PASS/FAIL]
- X tests passed

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon