Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,21 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json

- name: Install Python dependencies
run: uv sync --dev

- name: Run tests with coverage
- name: Install Node.js dependencies
run: cd frontend && npm ci

- name: Run backend tests with coverage
run: uv run pytest --cov=backend --cov-report=term

- name: Run frontend tests
run: cd frontend && npm test
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,28 @@ The container is now running in the background. Open your web browser and naviga
### 4. Inspect your agents

- Try inputting a sample agent URL such as `https://sample-a2a-agent-908687846511.us-central1.run.app`

## Testing

### Run all tests

```sh
# Make the script executable (first time only)
chmod +x scripts/test.sh

# Run all tests
bash scripts/test.sh
```

### Run tests separately

**Backend tests:**
```sh
uv run pytest backend/tests/
```

**Frontend tests:**
```sh
cd frontend
npm test
```
File renamed without changes.
File renamed without changes.
10 changes: 9 additions & 1 deletion frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{
"extends": "./node_modules/gts/"
"extends": "./node_modules/gts/",
"overrides": [
{
"files": ["tests/**/*.ts", "vitest.config.ts"],
"rules": {
"n/no-unpublished-import": "off"
}
}
]
}
Loading
Loading