Token导航 LogoToken导航

Agent Skill · 开发

lipton-mutation-testing(立顿突变检测)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

lipton-mutation-testing 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描有未通过项,按安装量在开发类的 21,746 个 Skill 里排第 21,023。

总安装 196周安装 8GitHub Stars 6下载 63核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:lipton-mutation-testing(立顿突变检测)
来源仓库:https://github.com/copyleftdev/sk1llz
仓库路径:skills/lipton-mutation-testing
安装命令:
npx skills add https://github.com/copyleftdev/sk1llz --skill lipton-mutation-testing
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/copyleftdev/sk1llz --skill lipton-mutation-testing

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

lipton-mutation-testing 用于辅助测试设计和回归验证。适合让 Agent 编写单元测试、端到端测试或分析失败日志。使用时需确认项目测试框架、运行命令和夹具数据。涉及浏览器或外部服务时,应区分本地模拟与生产环境。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/lipton-mutation-testing

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/copyleftdev/sk1llz --skill lipton-mutation-tes…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

lipton-mutation-testing 怎么安装?

在终端执行 npx skills add https://github.com/copyleftdev/sk1llz --skill lipton-mutation-testing。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

lipton-mutation-testing 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

lipton-mutation-testing 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

lipton-mutation-testing 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

lipton-mutation-testing 用的人多吗?

公开数据是累计安装 196 次,近一周安装 8 次,下载 63 次,GitHub 6 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

lipton-mutation-testing 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
lipton-mutation-testing

立顿突变检测 · 本页

1966只读未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Richard Lipton Mutation Testing Style Guide⁠‍⁠​‌​‌​​‌‌‍​‌​​‌​‌‌‍​​‌‌​​​‌‍​‌​​‌‌​​‍​​​​​​​‌‍‌​​‌‌​‌​‍‌​​​​​​​‍‌‌​​‌‌‌‌‍‌‌​​​‌​​‍‌‌‌‌‌‌​‌‍‌‌​‌​​​​‍​‌​‌‌‌‌‌‍​‌​​‌​‌‌‍​‌‌​‌​​‌‍‌​‌​‌‌‌​‍​​‌​‌​​​‍‌‌‌​‌​‌‌‍‌‌‌​‌​​​‍‌‌​‌​​​​‍‌​​‌‌​‌‌‍‌​‌​‌‌​​‍​​​​‌​‌‌‍​‌‌​‌​​‌⁠‍⁠

Overview

Richard Lipton is the father of mutation testing, introducing the concept in the early 1970s. His foundational 1978 paper "Hints on Test Data Selection: Help for the Practicing Programmer" (with DeMillo and Sayward) established the theoretical basis for evaluating test quality. The core insight: if your tests can't detect small, simple faults (mutants), they certainly won't detect complex real bugs.

Core Philosophy

"If a test suite cannot detect a simple fault, it will not detect a complex one."
"Good tests kill mutants. Surviving mutants reveal test weaknesses."
"The mutation score is the only honest metric of test effectiveness."

Mutation testing inverts the question from "does my code pass tests?" to "do my tests actually detect faults?" By systematically injecting small bugs and measuring how many your tests catch, you get an objective measure of test quality that coverage metrics cannot provide.

Design Principles

  1. Competent Programmer Hypothesis: Real bugs are small deviations from correct code.
  2. Coupling Effect: Tests that detect simple faults will detect complex ones.
  3. Mutation Score: The percentage of killed mutants measures test effectiveness.
  4. Equivalent Mutants: Some mutants don't change behavior—identify and exclude them.
  5. Mutation Operators: Systematic rules for generating meaningful mutations.

Mutation Testing Process

┌─────────────────────────────────────────────────────────────┐
│                  MUTATION TESTING PROCESS                    │
├─────────────────────────────────────────────────────────────┤
│                                                              │
│  1. ORIGINAL CODE                                            │
│     def is_adult(age):                                       │
│         return age >= 18                                     │
│                                                              │
│                    │                                         │
│                    ▼                                         │
│                                                              │
│  2. GENERATE MUTANTS (apply mutation operators)              │
│                                                              │
│     Mutant 1: return age > 18    (>= → >)                   │
│     Mutant 2: return age <= 18   (>= → <=)                  │
│     Mutant 3: return age >= 17   (18 → 17)                  │
│     Mutant 4: return age >= 19   (18 → 19)                  │
│     Mutant 5: return True        (replace expression)       │
│                                                              │
│                    │                                         │
│                    ▼                                         │
│                                                              │
│  3. RUN TESTS AGAINST EACH MUTANT                           │
│                                                              │
│     Mutant 1: KILLED (test_age_18 failed)                   │
│     Mutant 2: KILLED (test_age_20 failed)                   │
│     Mutant 3: KILLED (test_age_18 failed)                   │
│     Mutant 4: SURVIVED ← Test gap found!                    │
│     Mutant 5: KILLED (test_age_10 failed)                   │
│                                                              │
│                    │                                         │
│                    ▼                                         │
│                                                              │
│  4. CALCULATE MUTATION SCORE                                 │
│                                                              │
│     Killed: 4 / Total: 5 = 80% mutation score               │
│                                                              │
│  5. IMPROVE TESTS (to kill survivors)                       │
│                                                              │
│     Add: test_age_19() → asserts is_adult(19) == True      │
│     Re-run: Mutant 4 now KILLED                             │
│     New score: 100%                                          │
│                                                              │
└─────────────────────────────────────────────────────────────┘

Mutation Operators

Arithmetic Operator Replacement (AOR)

# Original
result = a + b

# Mutants
result = a - b    # + → -
result = a * b    # + → *
result = a / b    # + → /
result = a % b    # + → %
result = a ** b   # + → **

Relational Operator Replacement (ROR)

# Original
if x >= y:

# Mutants
if x > y:     # >= → >
if x <= y:    # >= → <=
if x < y:     # >= → <
if x == y:    # >= → ==
if x != y:    # >= → !=
if True:      # replace with True
if False:     # replace with False

Conditional Operator Replacement (COR)

# Original
if a and b:

# Mutants
if a or b:      # and → or
if a:           # remove b
if b:           # remove a
if True:        # always true
if False:       # always false

Statement Deletion (SDL)

# Original
def process(x):
    validate(x)
    result = compute(x)
    log(result)
    return result

# Mutants (delete each statement)
def process(x):
    # validate(x)  ← deleted
    result = compute(x)
    log(result)
    return result

def process(x):
    validate(x)
    result = compute(x)
    # log(result)  ← deleted
    return result

Constant Replacement (CR)

# Original
TIMEOUT = 30
MAX_RETRIES = 3

# Mutants
TIMEOUT = 0      # boundary
TIMEOUT = 31     # off by one
TIMEOUT = -30    # sign change
MAX_RETRIES = 0  # boundary
MAX_RETRIES = 2  # off by one
MAX_RETRIES = 4  # off by one

When Applying Mutation Testing

Always

  • Run mutation testing on critical code paths
  • Kill surviving mutants with targeted tests
  • Track mutation score over time
  • Identify equivalent mutants (no behavioral change)
  • Use mutation testing to validate test refactoring
  • Focus on boundary conditions and edge cases

Never

  • Aim for 100% blindly (equivalent mutants exist)
  • Ignore surviving mutants in critical code
  • Confuse mutation score with code coverage
  • Run without timeout (infinite loop mutants)
  • Mutate test code (only production code)
  • Skip analysis of why mutants survived

Prefer

  • Mutation score over line coverage
  • Targeted mutations over exhaustive generation
  • Analyzing survivors over just counting kills
  • Boundary mutation operators first
  • Testing critical paths with high mutation score
  • CI integration for regression

Code Patterns

Mutation Testing Framework

import ast
import copy
from typing import List, Callable, Tuple
from dataclasses import dataclass
from enum import Enum

class MutantStatus(Enum):
    KILLED = "killed"
    SURVIVED = "survived"
    TIMEOUT = "timeout"
    ERROR = "error"
    EQUIVALENT = "equivalent"

@dataclass
class Mutant:
    id: int
    operator: str
    original: str
    mutated: str
    location: Tuple[int, int]  # line, column
    status: MutantStatus = None
    killing_test: str = None

@dataclass
class MutationResult:
    total_mutants: int
    killed: int
    survived: int
    timeout: int
    equivalent: int
    mutation_score: float
    survivors: List[Mutant]

class MutationOperator:
    """Base class for mutation operators."""

    name: str = "base"

    def mutate(self, node: ast.AST) -> List[ast.AST]:
        """Generate mutated versions of the node."""
        raise NotImplementedError

class ArithmeticOperatorReplacement(MutationOperator):
    """Replace arithmetic operators: + - * / % **"""

    name = "AOR"

    OPERATORS = {
        ast.Add: [ast.Sub, ast.Mult, ast.Div, ast.Mod],
        ast.Sub: [ast.Add, ast.Mult, ast.Div, ast.Mod],
        ast.Mult: [ast.Add, ast.Sub, ast.Div, ast.Mod],
        ast.Div: [ast.Add, ast.Sub, ast.Mult, ast.Mod],
        ast.Mod: [ast.Add, ast.Sub, ast.Mult, ast.Div],
    }

    def mutate(self, node: ast.BinOp) -> List[ast.BinOp]:
        if type(node.op) not in self.OPERATORS:
            return []

        mutants = []
        for replacement_op in self.OPERATORS[type(node.op)]:
            mutant = copy.deepcopy(node)
            mutant.op = replacement_op()
            mutants.append(mutant)

        return mutants

class RelationalOperatorReplacement(MutationOperator):
    """Replace relational operators: < <= > >= == !="""

    name = "ROR"

    OPERATORS = {
        ast.Lt: [ast.LtE, ast.Gt, ast.GtE, ast.Eq, ast.NotEq],
        ast.LtE: [ast.Lt, ast.Gt, ast.GtE, ast.Eq, ast.NotEq],
        ast.Gt: [ast.Lt, ast.LtE, ast.GtE, ast.Eq, ast.NotEq],
        ast.GtE: [ast.Lt, ast.LtE, ast.Gt, ast.Eq, ast.NotEq],
        ast.Eq: [ast.Lt, ast.LtE, ast.Gt, ast.GtE, ast.NotEq],
        ast.NotEq: [ast.Lt, ast.LtE, ast.Gt, ast.GtE, ast.Eq],
    }

    def mutate(self, node: ast.Compare) -> List[ast.Compare]:
        mutants = []

        for i, op in enumerate(node.ops):
            if type(op) not in self.OPERATORS:
                continue

            for replacement_op in self.OPERATORS[type(op)]:
                mutant = copy.deepcopy(node)
                mutant.ops[i] = replacement_op()
                mutants.append(mutant)

        return mutants

class ConditionalOperatorReplacement(MutationOperator):
    """Replace conditional operators: and or"""

    name = "COR"

    def mutate(self, node: ast.BoolOp) -> List[ast.AST]:
        mutants = []

        # and → or, or → and
        mutant = copy.deepcopy(node)
        if isinstance(node.op, ast.And):
            mutant.op = ast.Or()
        else:
            mutant.op = ast.And()
        mutants.append(mutant)

        # Remove each operand
        for i in range(len(node.values)):
            if len(node.values) > 1:
                mutant = copy.deepcopy(node)
                mutant.values = [v for j, v in enumerate(node.values) if j != i]
                if len(mutant.values) == 1:
                    mutants.append(mutant.values[0])
                else:
                    mutants.append(mutant)

        return mutants

class StatementDeletion(MutationOperator):
    """Delete statements."""

    name = "SDL"

    def mutate(self, node: ast.stmt) -> List[ast.Pass]:
        # Replace statement with pass
        return [ast.Pass()]

class ConstantReplacement(MutationOperator):
    """Replace constants with boundary values."""

    name = "CR"

    def mutate(self, node: ast.Constant) -> List[ast.Constant]:
        mutants = []

        if isinstance(node.value, int):
            # Boundary mutations
            mutants.extend([
                ast.Constant(value=0),
                ast.Constant(value=1),
                ast.Constant(value=-1),
                ast.Constant(value=node.value + 1),
                ast.Constant(value=node.value - 1),
                ast.Constant(value=-node.value),
            ])
        elif isinstance(node.value, bool):
            mutants.append(ast.Constant(value=not node.value))
        elif isinstance(node.value, str):
            mutants.extend([
                ast.Constant(value=""),
                ast.Constant(value=node.value + "mutated"),
            ])

        # Remove duplicates of original
        return [m for m in mutants if m.value != node.value]

class MutationEngine:
    """Generate and test mutants."""

    def __init__(self,
                 operators: List[MutationOperator] = None,
                 timeout_seconds: float = 5.0):
        self.operators = operators or [
            ArithmeticOperatorReplacement(),
            RelationalOperatorReplacement(),
            ConditionalOperatorReplacement(),
            ConstantReplacement(),
        ]
        self.timeout = timeout_seconds

    def generate_mutants(self, source_code: str) -> List[Mutant]:
        """Generate all mutants for the given source code."""
        tree = ast.parse(source_code)
        mutants = []
        mutant_id = 0

        for node in ast.walk(tree):
            for operator in self.operators:
                node_mutants = self._try_mutate(node, operator)

                for mutated_node in node_mutants:
                    mutant_id += 1
                    mutants.append(Mutant(
                        id=mutant_id,
                        operator=operator.name,
                        original=ast.unparse(node),
                        mutated=ast.unparse(mutated_node),
                        location=(getattr(node, 'lineno', 0),
                                 getattr(node, 'col_offset', 0)),
                    ))

        return mutants

    def _try_mutate(self, node: ast.AST, operator: MutationOperator) -> List[ast.AST]:
        """Try to apply operator to node."""
        try:
            return operator.mutate(node)
        except (TypeError, AttributeError):
            return []

    def run_mutation_testing(self,
                              source_code: str,
                              test_function: Callable[[], bool]) -> MutationResult:
        """
        Run mutation testing.

        Args:
            source_code: The code to mutate
            test_function: A function that runs tests, returns True if all pass

        Returns:
            MutationResult with statistics and survivors
        """
        mutants = self.generate_mutants(source_code)

        killed = 0
        survived = 0
        timeout = 0
        survivors = []

        for mutant in mutants:
            status = self._test_mutant(mutant, source_code, test_function)
            mutant.status = status

            if status == MutantStatus.KILLED:
                killed += 1
            elif status == MutantStatus.SURVIVED:
                survived += 1
                survivors.append(mutant)
            elif status == MutantStatus.TIMEOUT:
                timeout += 1

        total = killed + survived
        score = (killed / total * 100) if total > 0 else 0

        return MutationResult(
            total_mutants=len(mutants),
            killed=killed,
            survived=survived,
            timeout=timeout,
            equivalent=0,  # Requires human analysis
            mutation_score=score,
            survivors=survivors,
        )

    def _test_mutant(self,
                      mutant: Mutant,
                      original_source: str,
                      test_function: Callable) -> MutantStatus:
        """Test a single mutant."""
        # Create mutated source
        mutated_source = original_source.replace(
            mutant.original,
            mutant.mutated,
            1  # Replace first occurrence only
        )

        try:
            # Execute mutated code
            exec_globals = {}
            exec(mutated_source, exec_globals)

            # Run tests with timeout
            import signal

            def timeout_handler(signum, frame):
                raise TimeoutError()

            signal.signal(signal.SIGALRM, timeout_handler)
            signal.alarm(int(self.timeout))

            try:
                tests_pass = test_function()
                signal.alarm(0)

                if tests_pass:
                    return MutantStatus.SURVIVED
                else:
                    return MutantStatus.KILLED
            except TimeoutError:
                return MutantStatus.TIMEOUT

        except Exception:
            # Mutant caused error - counts as killed
            return MutantStatus.KILLED

Analyzing Survivors

class SurvivorAnalyzer:
    """Analyze why mutants survived to improve tests."""

    def analyze_survivors(self,
                          result: MutationResult,
                          source_code: str) -> List[dict]:
        """
        Analyze each surviving mutant and suggest test improvements.
        """
        analyses = []

        for mutant in result.survivors:
            analysis = {
                'mutant': mutant,
                'diagnosis': self._diagnose(mutant),
                'suggested_test': self._suggest_test(mutant),
                'is_equivalent': self._check_equivalent(mutant, source_code),
            }
            analyses.append(analysis)

        return analyses

    def _diagnose(self, mutant: Mutant) -> str:
        """Diagnose why this mutant might have survived."""

        if mutant.operator == 'ROR':
            return (f"Boundary condition not tested. "
                   f"Original: {mutant.original}, Mutant: {mutant.mutated}. "
                   f"Add test at exact boundary value.")

        elif mutant.operator == 'AOR':
            return (f"Arithmetic operation not fully tested. "
                   f"Test with values that distinguish {mutant.original} from {mutant.mutated}.")

        elif mutant.operator == 'CR':
            return (f"Constant value not significant to tests. "
                   f"Add test that specifically depends on value being {mutant.original}.")

        elif mutant.operator == 'COR':
            return (f"Logical condition not fully exercised. "
                   f"Test with combinations that distinguish {mutant.original} from {mutant.mutated}.")

        return "Unknown - manual analysis required."

    def _suggest_test(self, mutant: Mutant) -> str:
        """Suggest a test to kill this mutant."""

        if '>=' in mutant.original and '>' in mutant.mutated:
            # >= mutated to >, need test at exact boundary
            return "Add test with value at exact boundary (the equality case)."

        if '<=' in mutant.original and '<' in mutant.mutated:
            return "Add test with value at exact boundary (the equality case)."

        if 'and' in mutant.original.lower() and 'or' in mutant.mutated.lower():
            return "Add test where first condition is True, second is False."

        return f"Add test that produces different result for {mutant.original} vs {mutant.mutated}."

    def _check_equivalent(self, mutant: Mutant, source_code: str) -> bool:
        """
        Check if mutant is equivalent (produces same behavior).
        This is undecidable in general - heuristics only.
        """
        # Common equivalent mutant patterns
        equivalent_patterns = [
            # x * 1 → x * -1 when x is always 0
            # return x → return +x
            # etc.
        ]

        # This requires human judgment ultimately
        return False

def generate_test_for_survivor(mutant: Mutant) -> str:
    """
    Generate a test skeleton to kill a surviving mutant.
    """
    return f'''
def test_kill_mutant_{mutant.id}():
    """
    Kill mutant: {mutant.operator}
    Original: {mutant.original}
    Mutated:  {mutant.mutated}

    This test should pass with original code
    but fail with mutated code.
    """
    # TODO: Add test that distinguishes original from mutant
    # The key is finding an input where:
    #   original({mutant.original}) != mutant({mutant.mutated})

    result = function_under_test(input_that_distinguishes)
    assert result == expected_from_original
'''

Mutation Score Tracking

class MutationScoreTracker:
    """Track mutation score over time for quality metrics."""

    def __init__(self, project_name: str):
        self.project = project_name
        self.history = []

    def record(self,
               module: str,
               result: MutationResult,
               commit_hash: str = None):
        """Record mutation testing result."""
        self.history.append({
            'timestamp': datetime.now(),
            'commit': commit_hash,
            'module': module,
            'mutation_score': result.mutation_score,
            'total_mutants': result.total_mutants,
            'killed': result.killed,
            'survived': result.survived,
            'survivors': [
                {'operator': m.operator, 'location': m.location}
                for m in result.survivors
            ]
        })

    def trend_report(self) -> dict:
        """Generate trend report."""
        if len(self.history) < 2:
            return {'trend': 'insufficient data'}

        scores = [h['mutation_score'] for h in self.history]

        return {
            'current_score': scores[-1],
            'previous_score': scores[-2],
            'change': scores[-1] - scores[-2],
            'trend': 'improving' if scores[-1] > scores[-2] else 'degrading',
            'all_time_high': max(scores),
            'all_time_low': min(scores),
            'average': sum(scores) / len(scores),
        }

    def quality_gate(self,
                     minimum_score: float = 80.0,
                     max_regression: float = 5.0) -> Tuple[bool, str]:
        """
        CI quality gate based on mutation score.
        """
        if not self.history:
            return False, "No mutation testing results"

        current = self.history[-1]['mutation_score']

        if current < minimum_score:
            return False, f"Mutation score {current}% below minimum {minimum_score}%"

        if len(self.history) >= 2:
            previous = self.history[-2]['mutation_score']
            regression = previous - current

            if regression > max_regression:
                return False, f"Mutation score regressed by {regression}% (max allowed: {max_regression}%)"

        return True, f"Mutation score {current}% meets quality standards"

Mental Model

Lipton approaches test quality by asking:

  1. Can tests detect simple faults? If not, they won't detect complex ones
  2. What's the mutation score? The honest metric of test effectiveness
  3. Why did mutants survive? Each survivor reveals a test weakness
  4. Is it equivalent? Some mutants can't be killed (same behavior)
  5. Which operators matter? Focus on the mutations that model real bugs

The Mutation Testing Checklist

□ Select mutation operators appropriate to language
□ Generate mutants for critical code paths
□ Run test suite against each mutant
□ Calculate mutation score (killed / total)
□ Analyze each survivor
□ Identify equivalent mutants (cannot be killed)
□ Write tests to kill non-equivalent survivors
□ Track mutation score over time
□ Set quality gates in CI

Signature Lipton Moves

  • Competent Programmer Hypothesis
  • Coupling Effect
  • Mutation operators (AOR, ROR, COR, SDL, CR)
  • Mutation score as quality metric
  • Equivalent mutant identification
  • Survivor analysis
  • Boundary-focused mutations
  • Test gap detection through surviving mutants

平台分布

Codex

35.5%
按下载量换算22

Claude

29.42%
按下载量换算19

Cursor

19.45%
按下载量换算12

Gemini CLI

9%
按下载量换算6

安全审计

Gen Agent Trust Hub

未通过

Socket

未通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills