VSCode Extension
A dedicated VS Code extension (lastest-vscode) provides full IDE integration for managing and running visual regression tests without leaving your editor.
Features
Test Explorer
- Tree view of all tests organized by functional area in the Activity Bar
- See test status (passing, failing, new) at a glance
- Click to view test details
Run Tests
- Run individual tests or all tests directly from VS Code
- View results inline
Status Bar
- Live build status and test counts in the VS Code status bar
- Quick access to the Lastest dashboard
Real-Time Updates
- WebSocket-based live updates for test run progress
- See results as they come in without polling
Commands
| Command | Description |
|---|---|
lastest.refreshTests |
Refresh the test list |
lastest.runTest |
Run a specific test |
lastest.runAllTests |
Run all tests |
lastest.openInBrowser |
Open test in Lastest UI |
lastest.connect |
Connect to Lastest server |
REST + SSE API
The extension is powered by a backend API at /api/v1/:
| Resource | Operations |
|---|---|
| Repos | List, get repositories |
| Functional Areas | List, create, manage test areas |
| Tests | CRUD operations, run individual tests |
| Builds | Trigger and monitor builds |
| Runs | View test run results |
Real-Time Events
SSE (Server-Sent Events) stream at /api/v1/events for real-time updates:
- Build status changes
- Test completion events
- Runner status updates
Authentication
API access uses DB-backed session tokens via Authorization: Bearer <token> headers. Generate API keys from Settings > Agents & API Access.