Skip to content

Unit Test

Checking a single function or module in isolation from the rest of the system. The smallest unit of testing.

Why

  • Catch errors immediately after changes;
  • Fearless refactoring;
  • Document expected behavior.

In AI Projects

Tests cover auxiliary code: parsers, clients, data handlers. For the model itself, evaluation is used — this is similar to tests but for generation quality.

See Also

← All terms