Skip to content

Exercise 075: ExUnit Basics #55

@zoedsoupe

Description

@zoedsoupe

Exercise 075: ExUnit Basics

Topic: Mix & Testing
Level: 18
Difficulty: 2

Prerequisites

  • Exercise 074: Mix Project Structure
  • Writing functions

Learning Objectives

Students will learn to:

  • Write basic ExUnit tests
  • Use assert macro
  • Run tests with mix test

Key Concepts

  • ExUnit test framework
  • test macro for test cases
  • assert for assertions

Exercise Structure

  • Explain ExUnit test structure
  • Show test example with assert
  • Task: Write simple test for a function
  • Expected output: Passing test

Hints

Tests go in test/ directory and end with _test.exs

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions