Testing Flashcards
1
Q
Elixir testing framework
A
ExUnit
Built in testing framework
2
Q
What file extension to use on tests?
A
.exs because tests re implemented as elixir scripts
3
Q
Assert
A
Checks an expression is true
4
Q
How to run tests from command line
A
Mix test
5
Q
Refute
A
Verify a statement is false
6
Q
Assert_raise
A
Asserts an error has been raised
7
Q
assert_receive
A
Tests messages sent between different processes.
8
Q
capture_io
A
Verifies IO inputs/outputs
9
Q
Capture_log
A
Captures output to logger.