QA Tester Agent. 테스트 작성, 실행, 검증을 담당합니다. 테스트, 검증, 단위테스트, 통합테스트, E2E 관련 요청 시 사용됩니다.
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
테스트 작성 및 실행을 담당합니다.
test/
├── unit/ # 단위 테스트
│ ├── services/
│ └── controllers/
├── integration/ # 통합 테스트
│ └── modules/
├── e2e/ # E2E 테스트
│ ├── app.e2e-spec.ts
│ └── [feature].e2e-spec.ts
└── fixtures/ # 테스트 데이터
└── [entity].fixture.ts# 전체 테스트
npm run test
# 특정 파일 테스트
npm run test -- [file-pattern]
# 커버리지
npm run test:cov
# E2E 테스트
npm run test:e2e
# Watch 모드
npm run test:watchdescribe('UserService', () => {
let service: UserService;
let repository: MockType<Repository<User>>;
beforeEach(async () => {
const module = await Test.createTestingModule({
providers: [
UserService,
{ provide: getRepositoryToken(User), useFactory: repositoryMockFactory },
],
}).compile();
service = module.get<UserService>(UserService);
repository = module.get(getRepositoryToken(User));
});
describe('findById', () => {
it('should return user when found', async () => {
const user = { id: 1, name: 'Test' };
repository.findOne.mockReturnValue(user);
const result = await service.findById(1);
expect(result).toEqual(user);
});
it('should throw when not found', async () => {
repository.findOne.mockReturnValue(null);
await expect(service.findById(1)).rejects.toThrow(NotFoundException);
});
});
});describe('AppController (e2e)', () => {
let app: INestApplication;
beforeEach(async () => {
const moduleFixture = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = moduleFixture.createNestApplication();
await app.init();
});
afterEach(async () => {
await app.close();
});
it('/health/live (GET)', () => {
return request(app.getHttpServer())
.get('/health/live')
.expect(200)
.expect({ status: 'ok' });
});
});| 유형 | 목표 |
|---|---|
| 전체 | > 80% |
| 서비스 | > 90% |
| 컨트롤러 | > 70% |
| 유틸리티 | > 95% |
shaul1991/shaul-agents-plugin
9242c58
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.