c3677f409c
Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
30 lines
703 B
Go
30 lines
703 B
Go
//go:build e2e
|
|
|
|
package e2e
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/kandev/kandev/internal/agent/agents"
|
|
"github.com/kandev/kandev/pkg/agent"
|
|
)
|
|
|
|
// https://www.npmjs.com/package/@google/gemini-cli
|
|
|
|
func TestGemini_BasicPrompt(t *testing.T) {
|
|
result := RunAgent(t, AgentSpec{
|
|
Name: "gemini",
|
|
Command: acpCommand(t, agents.NewGemini()),
|
|
Protocol: agent.ProtocolACP,
|
|
DefaultPrompt: "What is 2 + 2? Reply with just the number.",
|
|
AutoApprove: true,
|
|
})
|
|
defer DumpEventsOnFailure(t, result)
|
|
|
|
AssertTurnCompleted(t, result)
|
|
AssertSessionIDConsistent(t, result.Events)
|
|
|
|
counts := CountEventsByType(result.Events)
|
|
t.Logf("gemini completed in %s: %v", result.Duration, counts)
|
|
}
|