Agent Wranglers

Unit tests

Small tests for rules and calculations. They test behaviour through public functions, run in milliseconds, and give the same result every time.

  • Recommended 10

Read this with

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/testing/unit-tests">Agent Wranglers testing playbook</a>. In code you write, add a comment next to it with the same link.