Terminology Index

Glossary

13 terms starting with "U"

Open concept maps

Showing 1-13 of 13 terms

U
13

Unit Testing

Writing automated tests for individual detection rules to verify they fire on expected inputs and don't fire on safe ones, the smallest-grain check in a detection-as-code testing strategy.

Detection unit tests are small, focused tests on individual rules: given this representative event, does the rule fire as expected; given this safe event, does it stay silent. They catch regressions early, document rule intent through tests, and let engineers refactor with confidence. As a detection-engineering topic, unit testing is one layer of a complete testing strategy (alongside integration and regression testing) and is core to mature detection-as-code workflows.

Introduced in: Detection Engineering

Examples

  • Writing a unit test that confirms a rule fires on a representative malicious event.
  • Adding a unit test that confirms a rule stays silent on a known safe event.
  • Catching regressions early via the detection unit-test suite.

No related terms linked yet.