Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Addition of an Erlang Starting Point #10

Merged
merged 1 commit into from

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
Adrian Mowat
Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 2, 2011
  1. Rob Lally
This page is out of date. Refresh to see the latest.
5 starting_points/erlang/.gitignore
View
@@ -0,0 +1,5 @@
+ebin/
+
+.eunit
+
+.#*
10 starting_points/erlang/README
View
@@ -0,0 +1,10 @@
+A template project for Erlang using EUnit and Rebar.
+
+You will need to have a standard installation of Erlang installed.
+
+A version of Rebar that runs on OSX, and should also work on Linux is included in the root of the erlang project.
+
+To run the tests, cd to the starting_points/erlang directory (the same directory that contains this file), and run
+
+ ./rebar eunit
+
BIN  starting_points/erlang/rebar
View
Binary file not shown
12 starting_points/erlang/src/game_of_life.app.src
View
@@ -0,0 +1,12 @@
+{application, game_of_life,
+ [
+ {description, ""},
+ {vsn, "1"},
+ {registered, []},
+ {applications, [
+ kernel,
+ stdlib
+ ]},
+ {mod, {game_of_life_app, []}},
+ {env, []}
+ ]}.
6 starting_points/erlang/src/game_of_life.erl
View
@@ -0,0 +1,6 @@
+-module(game_of_life).
+
+-compile(export_all).
+
+something() ->
+ 1.
9 starting_points/erlang/test/game_of_life_test.erl
View
@@ -0,0 +1,9 @@
+-module(game_of_life_test).
+
+-compile(export_all).
+-import(game_of_life, [something/0]).
+
+ -include_lib("eunit/include/eunit.hrl").
+
+something_test() ->
+ ?assert(999 =:= something()).
Something went wrong with that request. Please try again.