Testing Flashcards

1
Q

Elixir testing framework

A

ExUnit
Built in testing framework

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What file extension to use on tests?

A

.exs because tests re implemented as elixir scripts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Assert

A

Checks an expression is true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to run tests from command line

A

Mix test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Refute

A

Verify a statement is false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Assert_raise

A

Asserts an error has been raised

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

assert_receive

A

Tests messages sent between different processes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

capture_io

A

Verifies IO inputs/outputs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Capture_log

A

Captures output to logger.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly