-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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
- Elixir docs: https://hexdocs.pm/ex_unit/ExUnit.html
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels