whatot / exercism-elixir

Exercism exercises in Elixir.

Home Page:http://exercism.io/languages/elixir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exercism Elixir Track

build status

Exercism Exercises in Elixir

Setup

The exercises currently target Elixir 1.3.2 and Erlang/OTP 19. Detailed installation instructions can be found at http://elixir-lang.org/install.html.

Contributing

Thank you so much for contributing! 🎉

We welcome pull requests that provide fixes and improvements to existing exercises. If you're unsure, then go ahead and open a GitHub issue, and we'll discuss the change.

Please keep the following in mind:

  • Please start by reading the general Exercism contributing guide.

  • Pull requests should be focused on a single exercise, issue, or change.

  • We welcome changes to code style, and wording. Please open a separate PR for these changes if possible.

  • Please open an issue before creating a PR that makes significant (breaking) changes to an existing exercise or makes changes across many exercises. It is best to discuss these changes before doing the work.

  • Follow the coding standards found in The Elixir Style Guide.

  • Watch out for trailing spaces, extra blank lines, and spaces in blank lines.

  • Each exercise must stand on its own. Do not reference files outside the exercise directory. They will not be included when the user fetches the exercise.

  • Please do not add a README or README.md file to the exercise directory. The READMEs are constructed using shared metadata, which lives in the exercism/x-common repository.

  • Each problem should have a test suite, an example solution, and a template file for the real implementation. The example solution should be named example.exs.

  • Use typespecs in the example and template files as described here.

  • Each test file should have code like the following at the top of the file. This allows the tests to be run on CI and configures tests to be skipped with the :pending flag.

if !System.get_env("EXERCISM_TEST_EXAMPLES") do
  Code.load_file("bob.exs", __DIR__)
end

ExUnit.start
ExUnit.configure exclude: :pending, trace: true
  • All but the initial test for each exercise should be tagged :pending.
@tag :pending
test "shouting" do
  assert Bob.hey("WATCH OUT!") == "Whoa, chill out!"
end

All the tests for Exercism Elixir Track exercises can be run from the top level of the repo with $ mix test. Please run this command before submitting your PR. Watch out for and correct any compiler warnings you may have introduced.

About

Exercism exercises in Elixir.

http://exercism.io/languages/elixir

License:MIT License


Languages

Language:Elixir 99.6%Language:Shell 0.4%