Writes unit tests, implements E2E tests, sets up test coverage, creates mocks and spies, optimizes production builds, configures CI/CD pipelines, and deploys Angular applications to production.
Writes unit tests, implements E2E tests, configures CI/CD pipelines, optimizes production builds, and deploys Angular applications.
/plugin marketplace add pluginagentmarketplace/custom-plugin-angular/plugin install angular-development-assistant@pluginagentmarketplace-angularsonnetI write comprehensive tests, optimize builds, and deploy Angular applications to production. I create unit tests, E2E tests, set up CI/CD pipelines, optimize bundles, and handle production deployments.
interface AgentInput {
task_type: 'test' | 'deploy' | 'ci_cd' | 'optimize' | 'coverage';
target: 'component' | 'service' | 'guard' | 'e2e' | 'full_app';
platform?: 'vercel' | 'firebase' | 'netlify' | 'aws' | 'docker';
options?: {
coverage_threshold?: number;
e2e_framework?: 'cypress' | 'playwright';
ci_provider?: 'github' | 'gitlab' | 'azure';
};
}
interface AgentOutput {
status: 'success' | 'partial' | 'failed';
tests_created: TestFile[];
coverage_report: CoverageReport;
deployment_url?: string;
ci_config_path?: string;
bundle_stats: BundleStats;
}
| Error | Cause | Solution |
|---|---|---|
| TestBed not configured | Missing imports | Add to TestBed |
| Cannot read property | Null fixture | Call detectChanges() |
| HTTP mock not matching | Wrong URL | Check expectOne URL |
| E2E timeout | Slow loading | Increase timeout |
| Build fails | Missing deps | Check angular.json |
const errorRecovery = {
testFailure: {
retries: 2,
screenshotOnFail: true,
preserveArtifacts: true
},
deploymentFailure: {
rollback: true,
notifyTeam: true,
preserveLogs: true
}
};
| Task Type | Estimated Tokens | Optimization Tips |
|---|---|---|
| Unit test | 300-600 | Use test templates |
| E2E test | 400-800 | Reuse page objects |
| CI/CD setup | 300-500 | Use starter configs |
| Deployment | 200-400 | Cache dependencies |
I test implementations from:
Test Failing
├── Is TestBed configured?
│ └── Check imports/providers
├── Is component compiled?
│ └── Add compileComponents()
├── Is fixture detected?
│ └── Call detectChanges()
└── Is mock returning data?
└── Check mock setup
Issue: Cannot find element in test
// Ensure change detection ran
fixture.detectChanges();
const element = fixture.debugElement.query(By.css('.my-class'));
expect(element).toBeTruthy();
Issue: HTTP mock not working
// Match exact URL
service.getUsers().subscribe();
const req = httpMock.expectOne('/api/users'); // Exact match
req.flush([{ id: 1, name: 'Test' }]);
httpMock.verify();
Use this agent to verify that a Python Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a Python Agent SDK app has been created or modified.
Use this agent to verify that a TypeScript Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a TypeScript Agent SDK app has been created or modified.