{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-property-based-testing",
  "id": "property-based-testing",
  "kind": "activity",
  "layer": {
    "href": "https://banes-lab.com/ontology/schema#layer-computation-core",
    "json": "https://banes-lab.com/json/records/layer/computation-core",
    "label": "Computation Core",
    "markdown": "https://banes-lab.com/records/layer/computation-core.md",
    "ref": "layer:computation-core"
  },
  "name": "Property-Based Testing",
  "ref": "architecture:property-based-testing",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-properties-invariants",
          "json": "https://banes-lab.com/json/records/lexicon/properties-invariants",
          "label": "Properties/Invariants",
          "markdown": "https://banes-lab.com/records/lexicon/properties-invariants.md",
          "ref": "lexicon:properties-invariants"
        }
      ],
      "relation": "requires"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-correctness",
          "json": "https://banes-lab.com/json/records/architecture/correctness",
          "label": "Correctness",
          "markdown": "https://banes-lab.com/records/architecture/correctness.md",
          "ref": "architecture:correctness"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-robustness",
          "json": "https://banes-lab.com/json/records/lexicon/robustness",
          "label": "Robustness",
          "markdown": "https://banes-lab.com/records/lexicon/robustness.md",
          "ref": "lexicon:robustness"
        }
      ],
      "relation": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-broad-input-exploration",
          "json": "https://banes-lab.com/json/records/lexicon/broad-input-exploration",
          "label": "Broad Input Exploration",
          "markdown": "https://banes-lab.com/records/lexicon/broad-input-exploration.md",
          "ref": "lexicon:broad-input-exploration"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-example-only-testing",
          "json": "https://banes-lab.com/json/records/lexicon/example-only-testing",
          "label": "Example-Only Testing",
          "markdown": "https://banes-lab.com/records/lexicon/example-only-testing.md",
          "ref": "lexicon:example-only-testing"
        }
      ],
      "relation": "conflicts-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-shrinking-debug-complexity",
          "json": "https://banes-lab.com/json/records/lexicon/shrinking-debug-complexity",
          "label": "Shrinking/Debug Complexity",
          "markdown": "https://banes-lab.com/records/lexicon/shrinking-debug-complexity.md",
          "ref": "lexicon:shrinking-debug-complexity"
        }
      ],
      "relation": "tensions-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#tension-property-based-testing-shrinking-debug-complexity",
          "json": "https://banes-lab.com/json/records/tension/property-based-testing-shrinking-debug-complexity",
          "label": "Property-Based Testing / Shrinking/Debug Complexity",
          "markdown": "https://banes-lab.com/records/tension/property-based-testing-shrinking-debug-complexity.md",
          "ref": "tension:property-based-testing-shrinking-debug-complexity"
        }
      ],
      "relation": "tensions"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-example-only-testing",
          "json": "https://banes-lab.com/json/records/lexicon/example-only-testing",
          "label": "Example-Only Testing",
          "markdown": "https://banes-lab.com/records/lexicon/example-only-testing.md",
          "ref": "lexicon:example-only-testing"
        }
      ],
      "relation": "violated-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-code-generation",
          "json": "https://banes-lab.com/json/records/lexicon/code-generation",
          "label": "Code Generation",
          "markdown": "https://banes-lab.com/records/lexicon/code-generation.md",
          "ref": "lexicon:code-generation"
        }
      ],
      "relation": "refactored-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#vocabulary-severity-recommended",
          "json": "https://banes-lab.com/json/records/vocabulary/severity-recommended",
          "label": "recommended",
          "markdown": "https://banes-lab.com/records/vocabulary/severity-recommended.md",
          "ref": "vocabulary:severity-recommended"
        }
      ],
      "relation": "severity"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/reasoning#reasoning-technique-property-based-testing",
          "json": "https://banes-lab.com/json/records/reasoning/technique-property-based-testing",
          "label": "Property Based Testing",
          "markdown": "https://banes-lab.com/records/reasoning/technique-property-based-testing.md",
          "ref": "reasoning:technique-property-based-testing"
        }
      ],
      "relation": "techniques"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-correctness-determinism-verification",
          "json": "https://banes-lab.com/json/records/architecture-category/correctness-determinism-verification",
          "label": "Correctness / Determinism / Verification",
          "markdown": "https://banes-lab.com/records/architecture-category/correctness-determinism-verification.md",
          "ref": "architecture-category:correctness-determinism-verification"
        }
      ],
      "relation": "category"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-test-pyramid-inversion",
          "json": "https://banes-lab.com/json/records/architecture/test-pyramid-inversion",
          "label": "Test Pyramid Inversion",
          "markdown": "https://banes-lab.com/records/architecture/test-pyramid-inversion.md",
          "ref": "architecture:test-pyramid-inversion"
        }
      ],
      "relation": "refactors"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/software-architecture/coverage#what-can-drift-seen-through-how-it-drifts",
          "json": "https://banes-lab.com/json/software-architecture/coverage/what-can-drift-seen-through-how-it-drifts",
          "label": "What can drift, seen through how it drifts",
          "markdown": "https://banes-lab.com/software-architecture/coverage/what-can-drift-seen-through-how-it-drifts.md",
          "ref": "chapter:/software-architecture/coverage#what-can-drift-seen-through-how-it-drifts"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-anti-patterns",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-anti-patterns",
          "label": "Anti-patterns",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-anti-patterns.md",
          "ref": "chapter:/ontology#architecture-category-anti-patterns"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-correctness-determinism-verification",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-correctness-determinism-verification",
          "label": "Correctness / Determinism / Verification",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-correctness-determinism-verification.md",
          "ref": "chapter:/ontology#architecture-category-correctness-determinism-verification"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-core-vocabulary",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-core-vocabulary",
          "label": "Core Vocabulary",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-core-vocabulary.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-core-vocabulary"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-correctness-determinism-verification",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-correctness-determinism-verification",
          "label": "Correctness / Determinism / Verification",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-correctness-determinism-verification.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-correctness-determinism-verification"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-quality-attributes",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-quality-attributes",
          "label": "Quality Attributes",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-quality-attributes.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-quality-attributes"
        },
        {
          "href": "https://banes-lab.com/ontology/reasoning#the-techniques",
          "json": "https://banes-lab.com/json/ontology/reasoning/the-techniques",
          "label": "The techniques",
          "markdown": "https://banes-lab.com/ontology/reasoning/the-techniques.md",
          "ref": "chapter:/ontology/reasoning#the-techniques"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-vocabulary-severity",
          "json": "https://banes-lab.com/json/ontology/schema/the-vocabulary-severity",
          "label": "Severity levels",
          "markdown": "https://banes-lab.com/ontology/schema/the-vocabulary-severity.md",
          "ref": "chapter:/ontology/schema#the-vocabulary-severity"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-resolutions",
          "json": "https://banes-lab.com/json/ontology/schema/the-resolutions",
          "label": "The resolutions",
          "markdown": "https://banes-lab.com/ontology/schema/the-resolutions.md",
          "ref": "chapter:/ontology/schema#the-resolutions"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "summary": "The activity of checking that a stated property holds for many generated inputs, and shrinking each failure to a minimal counterexample.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-static-analysis",
      "json": "https://banes-lab.com/json/records/architecture/static-analysis",
      "label": "Static Analysis",
      "markdown": "https://banes-lab.com/records/architecture/static-analysis.md",
      "ref": "architecture:static-analysis"
    },
    "previous": {
      "href": "https://banes-lab.com/ontology#architecture-specification-based-testing",
      "json": "https://banes-lab.com/json/records/architecture/specification-based-testing",
      "label": "Specification-Based Testing",
      "markdown": "https://banes-lab.com/records/architecture/specification-based-testing.md",
      "ref": "architecture:specification-based-testing"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/records/architecture",
    "label": "Architecture principles",
    "markdown": "https://banes-lab.com/api/records/architecture.md",
    "ref": "api:records/architecture"
  },
  "aliases": [],
  "exemplar": {
    "after": "property(string(), name => {\n  const once = normalizeFoo({ name });\n  const twice = normalizeFoo(once);\n  expect(twice).toEqual(once);\n});",
    "before": "test(\"normalizeFoo\", () => expect(normalizeFoo({ name: \" Foo \" }).name).toBe(\"Foo\"));",
    "lang": "ts",
    "medium": "code"
  },
  "formedBy": null,
  "scope": [
    "function",
    "algorithm",
    "parser",
    "domain invariant"
  ],
  "severity": "recommended"
}
