Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.

Commit 2494d5c

Browse files
committed
chore: Updating e2e tests
1 parent c4e6a1b commit 2494d5c

3 files changed

Lines changed: 37 additions & 14 deletions

File tree

.github/workflows/test-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
cache-dependency-glob: "pyproject.toml uv.toml"
2929

3030
- name: Install dependencies
31-
run: uv pip install -e .
31+
run: uv sync --extras dev
3232

3333
- name: Run E2E tests
3434
run: uv run ./scripts/run_e2e_tests.sh

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ swe-run-chat:
6868
uvx --from git+https://github.com/google/adk-python.git@main adk run code_agent/agent/software_engineer/software_engineer
6969

7070
swe-web-chat:
71-
uvx --from git+https://github.com/google/adk-python.git@main adk run code_agent/agent/software_engineer
71+
uvx --from git+https://github.com/google/adk-python.git@main adk web code_agent/agent/software_engineer
7272

7373
code-agent-chat:
7474
uv run code-agent chat

scripts/run_e2e_tests.sh

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,47 @@
44
set -e # Exit on any error
55

66
# Create directories for logs
7-
mkdir -p logs
7+
# mkdir -p logs
88

9+
echo "================================================"
910
echo "Running basic command tests..."
11+
echo "================================================"
1012

11-
# Test version command
13+
echo "================================================"
1214
echo "Testing version command..."
13-
code-agent --version
15+
echo "================================================"
16+
uv run code-agent --version
1417

15-
# Test basic run command
16-
echo "Testing basic run command..."
17-
code-agent run "What is your name?"
18+
# echo "================================================"
19+
# echo "Testing config command..."
20+
# echo "================================================"
21+
# uv run code-agent config show
1822

19-
# Test config command
20-
echo "Testing config command..."
21-
code-agent config show
22-
23-
# Test memory integration
23+
echo "================================================"
2424
echo "Testing memory integration..."
25-
python tests/integration/test_memory_integration.py
25+
echo "================================================"
26+
uv run python tests/integration/test_memory_integration.py
27+
28+
echo "================================================"
29+
echo "Testing basic chat command with CLI..."
30+
echo "================================================"
31+
echo 'What is your name?' | uv run code-agent chat
32+
33+
echo "================================================"
34+
echo "Testing basic chat command with ADK..."
35+
echo "================================================"
36+
echo 'What is your name?\exit' | uv run adk run code_agent/agent/software_engineer/software_engineer || true
37+
# echo 'What is your name?\nexit' | uvx --from git+https://github.com/google/adk-python.git@main adk run code_agent/agent/software_engineer/software_engineer
38+
39+
echo "================================================"
40+
echo "Testing file creation command with ADK..."
41+
echo "================================================"
42+
echo "Can you create a file called test.txt and write 'Hello, world!' to it? I approve the the shell command.\nexit" | uv run adk run code_agent/agent/software_engineer/software_engineer || true
43+
44+
echo "================================================"
45+
echo "Testing file deletion command with ADK..."
46+
echo "================================================"
47+
echo "Delete the file called test.txt? I approve the the shell command.\nexit" | uv run adk run code_agent/agent/software_engineer/software_engineer || true
48+
2649

2750
echo "All end-to-end tests completed successfully!"

0 commit comments

Comments
 (0)