M2 (Backend): - Add tests/ folder with pytest test files - Add pytest.ini for test configuration and coverage - Update scoring to require unit tests (Score 4+) M3 (Frontend): - Add tests/ folder with Vitest component unit tests - Add playwright/e2e/ folder with E2E Playwright tests - Add @playwright/test dependency and configuration - Update scoring to require both unit and E2E tests (Score 5) README.md updated with all milestone links and test requirements
69 lines
3.5 KiB
Markdown
69 lines
3.5 KiB
Markdown
# News Benchmark
|
|
|
|
A benchmark that tests how local language models perform on real world software engineering tasks.
|
|
|
|
## The challenge:
|
|
|
|
Make and maintain a news web application.
|
|
|
|
## Structure
|
|
|
|
Most real applications, are not made in a single shot. This benchmark reflects this by simulating tickets as milestones. Each mile stone is a separate markdown file, containing a prompt, description, acceptance criteria, technical details, and QA notes.
|
|
|
|
## Scoring
|
|
|
|
The model performing the benchmark will be scored against the acceptance criteria and the tests written as proof of work:
|
|
|
|
| Score | Criteria |
|
|
|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
| 0 | Agent failed to implement acceptance criteria |
|
|
| 1 | Agent partially implemented acceptance criteria that builds successfully |
|
|
| 2 | Agent fully implemented acceptance criteria that builds successfully |
|
|
| 3 | Agent fully implemented acceptance criteria that builds successfully, includes passing unit/integration tests with 50% code coverate
|
|
| 4 | Agent fully implemented acceptance criteria that builds successfully, includes passing unit/integration tests, passing end to end tests, with 80% code coverate |
|
|
| 5 | Agent fully implemented acceptance criteria that builds successfully, , includes passing unit/integration tests, and passing end to end tests with 100% code coverate |
|
|
|
|
## Milestones
|
|
|
|
This benchmark consists of multiple milestones, each representing a separate task:
|
|
|
|
### M1: Git Repository Setup
|
|
## Milestones
|
|
|
|
This benchmark consists of multiple milestones, each representing a separate task:
|
|
|
|
### M1: Git Repository Setup
|
|
- [M1 - Setup Git Project](milestone/m1-setup-git-project-prompt.md)
|
|
- [M1 - Setup Git Project Scoring](milestone/m1-setup-git-project-scoring.md)
|
|
|
|
### M2: Backend Infrastructure
|
|
- [M2 - Setup Backend](milestone/m2-setup-backend-prompt.md)
|
|
- [M2 - Setup Backend Scoring](milestone/m2-setup-backend-scoring.md)
|
|
|
|
### M3: Frontend Application
|
|
This benchmark consists of multiple milestones, each representing a separate task:
|
|
|
|
### M1: Git Repository Setup
|
|
- [M1 - Setup Git Project](milestone/m1-setup-git-project-prompt.md)
|
|
- [M1 - Setup Git Project Scoring](milestone/m1-setup-git-project-scoring.md)
|
|
|
|
### M2: Backend Infrastructure
|
|
- [M2 - Setup Backend](milestone/m2-setup-backend-prompt.md)
|
|
- [M2 - Setup Backend Scoring](milestone/m2-setup-backend-scoring.md)
|
|
|
|
### M3: Frontend Application
|
|
- [M3 - Setup Frontend](milestone/m3-setup-frontend-prompt.md)
|
|
- [M3 - Setup Frontend Scoring](milestone/m3-setup-frontend-scoring.md)
|
|
|
|
## Context management
|
|
|
|
After each milestone the agents context MUST be cleared. This test the models reasoning capabilities and how it performs with incomplete information.
|
|
|
|
|
|
## Tech stack variations
|
|
|
|
### Python
|
|
- **Backend:** Python, FastAPI, SQLAlchemy, SQLite (data persisted in a Docker volume)
|
|
- **Frontend:** React + TypeScript (Vite), lucide-react icons, served by nginx
|
|
- **Compose:** two services, frontend proxies /api to the backend
|