Course of Raku / Advanced / Testing and documentation 🆕

Testing 🆕

Tests check that your code does what it should — and keeps doing so as you change it. Raku ships with a testing module, Test, and the conventions to run whole suites of tests at once. Writing tests is a core part of developing real Raku programs and modules.

This section covers the Test module’s building blocks, the different kinds of comparison it offers, and how tests are run.

Topics in this section

Practice

Complete the quiz that covers the contents of this section.

Exercises

This section contains 3 exercises. Examine all the topics of this section before doing the coding practice.

  1. A first test
  2. Compare values
  3. Plan two checks

Course navigation

Testing and documentation 🆕   |   The Test module