Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Addition of an Erlang Starting Point #10

Merged
merged 1 commit into from

2 participants

@roblally

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.

@mowat27 mowat27 merged commit df6d3ad into coreyhaines:master
@mowat27
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. @roblally
This page is out of date. Refresh to see the latest.
View
5 starting_points/erlang/.gitignore
@@ -0,0 +1,5 @@
+ebin/
+
+.eunit
+
+.#*
View
10 starting_points/erlang/README
@@ -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
+
View
BIN  starting_points/erlang/rebar
Binary file not shown
View
12 starting_points/erlang/src/game_of_life.app.src
@@ -0,0 +1,12 @@
+{application, game_of_life,
+ [
+ {description, ""},
+ {vsn, "1"},
+ {registered, []},
+ {applications, [
+ kernel,
+ stdlib
+ ]},
+ {mod, {game_of_life_app, []}},
+ {env, []}
+ ]}.
View
6 starting_points/erlang/src/game_of_life.erl
@@ -0,0 +1,6 @@
+-module(game_of_life).
+
+-compile(export_all).
+
+something() ->
+ 1.
View
9 starting_points/erlang/test/game_of_life_test.erl
@@ -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.