regression-testing by proffesor-for-testing/agentic-qe
npx skills add https://github.com/proffesor-for-testing/agentic-qe --skill regression-testing<default_to_action> 当验证变更不会破坏现有功能时:
快速回归策略:
关键成功因素:
| 策略 | 方法 | 缩减比例 |
|---|---|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| Git diff 分析 |
| 70-90% |
| 基于风险 | 按影响优先级 | 50-70% |
| 基于历史 | 频繁失败的测试 | 40-60% |
| 基于时间预算 | 固定时间窗口 | 可变 |
// 分析变更文件并选择受影响的测试
function selectTests(changedFiles: string[]): string[] {
const testsToRun = new Set<string>();
for (const file of changedFiles) {
// 直接相关的测试
testsToRun.add(`${file.replace('.ts', '.test.ts')}`);
// 依赖的测试(通过覆盖率映射)
const dependentTests = testCoverage[file] || [];
dependentTests.forEach(t => testsToRun.add(t));
}
return Array.from(testsToRun);
}
// 示例:payment.ts 发生变更
// 运行:payment.test.ts, checkout.integration.test.ts, e2e/purchase.test.ts
# .github/workflows/regression.yml
jobs:
quick-regression:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Analyze changes
id: changes
uses: dorny/paths-filter@v2
with:
filters: |
payment:
- 'src/payment/**'
auth:
- 'src/auth/**'
- name: Run affected tests
run: npm run test:affected
- name: Smoke tests (always)
run: npm run test:smoke
nightly-regression:
if: github.event_name == 'schedule'
timeout-minutes: 120
steps:
- run: npm test -- --coverage
// 智能测试选择
await Task("Regression Analysis", {
pr: 1234,
strategy: 'change-based-with-risk',
timeBudget: '15min'
}, "qe-regression-risk-analyzer");
// 返回:
// {
// mustRun: ['payment.test.ts', 'checkout.integration.test.ts'],
// shouldRun: ['order.test.ts'],
// canSkip: ['profile.test.ts', 'search.test.ts'],
// estimatedTime: '12 min',
// riskCoverage: 0.94
// }
// 根据生产环境缺陷生成回归测试
await Task("Bug Regression Test", {
bug: { id: 'BUG-567', description: 'Checkout fails > 100 items' },
preventRecurrence: true
}, "qe-test-generator");
aqe/regression-testing/
├── test-selection/* - 影响分析结果
├── suite-health/* - 不稳定性、时序趋势
├── coverage-maps/* - 测试到代码的映射
└── bug-regressions/* - 来自生产缺陷的测试
const regressionFleet = await FleetManager.coordinate({
strategy: 'comprehensive-regression',
agents: [
'qe-regression-risk-analyzer', // 分析变更,选择测试
'qe-test-executor', // 执行选定的测试
'qe-coverage-analyzer', // 分析覆盖率缺口
'qe-quality-gate' // 通过/不通过决策
],
topology: 'sequential'
});
使用智能体时: qe-regression-risk-analyzer 提供智能测试选择,能以 10% 的执行时间实现 90% 的缺陷检测。智能体会自动根据生产缺陷生成回归测试。
/test-failure-investigator 诊断根本原因/bug-reporting-excellence 进行规范的缺陷报告/risk-based-testing 进行基于风险的优先级排序--affected 或文件列表明确约束--workers=2 和 --shard每周安装次数
148
代码仓库
GitHub 星标数
271
首次出现
2026年1月24日
安全审计
已安装于
codex145
opencode144
gemini-cli143
github-copilot143
cursor140
kimi-cli137
<default_to_action> When verifying changes don't break existing functionality:
Quick Regression Strategy:
Critical Success Factors:
| Strategy | How | Reduction |
|---|---|---|
| Change-based | Git diff analysis | 70-90% |
| Risk-based | Priority by impact | 50-70% |
| Historical | Frequently failing | 40-60% |
| Time-budget | Fixed time window | Variable |
// Analyze changed files and select impacted tests
function selectTests(changedFiles: string[]): string[] {
const testsToRun = new Set<string>();
for (const file of changedFiles) {
// Direct tests
testsToRun.add(`${file.replace('.ts', '.test.ts')}`);
// Dependent tests (via coverage mapping)
const dependentTests = testCoverage[file] || [];
dependentTests.forEach(t => testsToRun.add(t));
}
return Array.from(testsToRun);
}
// Example: payment.ts changed
// Runs: payment.test.ts, checkout.integration.test.ts, e2e/purchase.test.ts
# .github/workflows/regression.yml
jobs:
quick-regression:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Analyze changes
id: changes
uses: dorny/paths-filter@v2
with:
filters: |
payment:
- 'src/payment/**'
auth:
- 'src/auth/**'
- name: Run affected tests
run: npm run test:affected
- name: Smoke tests (always)
run: npm run test:smoke
nightly-regression:
if: github.event_name == 'schedule'
timeout-minutes: 120
steps:
- run: npm test -- --coverage
// Smart test selection
await Task("Regression Analysis", {
pr: 1234,
strategy: 'change-based-with-risk',
timeBudget: '15min'
}, "qe-regression-risk-analyzer");
// Returns:
// {
// mustRun: ['payment.test.ts', 'checkout.integration.test.ts'],
// shouldRun: ['order.test.ts'],
// canSkip: ['profile.test.ts', 'search.test.ts'],
// estimatedTime: '12 min',
// riskCoverage: 0.94
// }
// Generate regression test from production bug
await Task("Bug Regression Test", {
bug: { id: 'BUG-567', description: 'Checkout fails > 100 items' },
preventRecurrence: true
}, "qe-test-generator");
aqe/regression-testing/
├── test-selection/* - Impact analysis results
├── suite-health/* - Flakiness, timing trends
├── coverage-maps/* - Test-to-code mapping
└── bug-regressions/* - Tests from production bugs
const regressionFleet = await FleetManager.coordinate({
strategy: 'comprehensive-regression',
agents: [
'qe-regression-risk-analyzer', // Analyze changes, select tests
'qe-test-executor', // Execute selected tests
'qe-coverage-analyzer', // Analyze coverage gaps
'qe-quality-gate' // Go/no-go decision
],
topology: 'sequential'
});
With Agents: qe-regression-risk-analyzer provides intelligent test selection achieving 90% defect detection in 10% of execution time. Agents generate regression tests from production bugs automatically.
/test-failure-investigator to diagnose root cause/bug-reporting-excellence for proper bug reporting/risk-based-testing for risk-based prioritization--affected or file list--workers=2 and --shard for CI environmentsWeekly Installs
148
Repository
GitHub Stars
271
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex145
opencode144
gemini-cli143
github-copilot143
cursor140
kimi-cli137
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
128,400 周安装