Skip to content
This repository

Addition of an Erlang Starting Point #10

Merged
merged 1 commit into from over 2 years ago

2 participants

Rob Lally Adrian Mowat
Rob Lally

Hi,

I've put together a very simple Erlang, EUnit & Rebar project to use as a starting point during code retreats. Hope this helps.

Rob.

Adrian Mowat mowat27 merged commit df6d3ad into from December 02, 2011
Adrian Mowat mowat27 closed this December 02, 2011
Adrian Mowat
Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Dec 02, 2011
Rob Lally Addition of a simple Erlang/EUnit/Rebar project. 5bdc3ca
This page is out of date. Refresh to see the latest.
5  starting_points/erlang/.gitignore
... ...
@@ -0,0 +1,5 @@
  1
+ebin/
  2
+
  3
+.eunit
  4
+
  5
+.#*
10  starting_points/erlang/README
... ...
@@ -0,0 +1,10 @@
  1
+A template project for Erlang using EUnit and Rebar.
  2
+
  3
+You will need to have a standard installation of Erlang installed.
  4
+
  5
+A version of Rebar that runs on OSX, and should also work on Linux is included in the root of the erlang project.
  6
+
  7
+To run the tests, cd to the starting_points/erlang directory (the same directory that contains this file), and run
  8
+
  9
+   ./rebar eunit
  10
+
BIN  starting_points/erlang/rebar
Binary file not shown
12  starting_points/erlang/src/game_of_life.app.src
... ...
@@ -0,0 +1,12 @@
  1
+{application, game_of_life,
  2
+ [
  3
+  {description, ""},
  4
+  {vsn, "1"},
  5
+  {registered, []},
  6
+  {applications, [
  7
+                  kernel,
  8
+                  stdlib
  9
+                 ]},
  10
+  {mod, {game_of_life_app, []}},
  11
+  {env, []}
  12
+ ]}.
6  starting_points/erlang/src/game_of_life.erl
... ...
@@ -0,0 +1,6 @@
  1
+-module(game_of_life).
  2
+
  3
+-compile(export_all).
  4
+
  5
+something() ->
  6
+    1.
9  starting_points/erlang/test/game_of_life_test.erl
... ...
@@ -0,0 +1,9 @@
  1
+-module(game_of_life_test).
  2
+
  3
+-compile(export_all).
  4
+-import(game_of_life, [something/0]).
  5
+
  6
+ -include_lib("eunit/include/eunit.hrl").
  7
+
  8
+something_test() ->
  9
+    ?assert(999 =:= something()).
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.