Modules and packages

Overview

Teaching: 60 min
Exercises: 0 min
Questions
  • Whats the purpose of modules?

  • How are packages structured?

Objectives
  • Learn setting up a project using modules.

  • Learn common package structure.

  • Practice setting up unit tests.

Key Points

  • Modules introduce namespaces. Public API has to be exported.

  • Split code in src, test and script code.

  • Tests are set up using @test and @testset macro.