/elixir-ex

Random Elixir examples and code snippets when learning Elixir.

Primary LanguageElixirMIT LicenseMIT

elixir-ex

Random Elixir examples and code snippets when learning Elixir.

Install Hex:

mix hex.local

Fetch dependencies:

mix deps.get

Create new Mix project:

mix new ex001_json

How to select which tests to run?

Select tests to run:

@tag runonly: true
test "foo" do
done
mix test --only runonly:true

Disable tests:

@tag disabled: true
test "foo" do
done

test_helpers.exs:

ExUnit.configure exclude: [disabled: true]