Generate AI-powered tests from your codebase with bugster generate
bugster generate
command analyzes your codebase and automatically creates comprehensive test specifications. It understands your application structure and generates relevant test cases for your pages and components.
bugster init
before using the generate command. The command requires your project to be properly configured and authenticated..bugster/tests/
directoryCodebase Analysis
AI Test Generation
Test Organization
--page
pages/auth.tsx
/full/path/to/pages/auth.tsx
(converted to relative)--count
--count 1
: Quick smoke tests for each page--count 5
: Comprehensive testing for critical pages--count 10+
: Extensive testing for complex workflowsbugster generate
, your project structure will include:
pages/
directoryExamples:pages/index.tsx
→ /
pages/about.tsx
→ /about
pages/user/[id].tsx
→ /user/:id
_app.tsx
, _document.tsx
page.tsx
files in app/
directoryExamples:app/page.tsx
→ /
app/about/page.tsx
→ /about
app/user/[id]/page.tsx
→ /user/:id
layout.tsx
, loading.tsx
, API routesComponent Analysis
User Workflows
Existing Tests Context
No tests generated
pages/
or app/
directories--show-logs
to see detailed analysis outputGeneration timeout
--page
flag to generate for specific pagesInvalid page paths
Generation failed
--force
flag--show-logs
for detailed error information