GildedRose-Refactoring-Kata/erlang
2021-10-27 09:57:22 -07:00
..
include texttext fixture moved into own executable 'main' module. 2021-08-26 13:20:24 +02:00
src texttext fixture moved into own executable 'main' module. 2021-08-26 13:20:24 +02:00
test texttext fixture moved into own executable 'main' module. 2021-08-26 13:20:24 +02:00
.gitignore texttext fixture moved into own executable 'main' module. 2021-08-26 13:20:24 +02:00
README.md fix JetBrains erlang link 2021-10-27 09:57:22 -07:00
rebar.config texttext fixture moved into own executable 'main' module. 2021-08-26 13:20:24 +02:00
rebar.lock new version of erlang 2021-08-26 08:59:40 +02:00

GildedRose

You will need to install erlang, and rebar3. I recommend following the instructions from JetBrains: Getting Started with Erlang.

When you open this project with IntelliJ I recommend that you do

File | New | Project from existing sources 

Then be sure to select "Erlang" as the project type, and configure the rebar3 location correctly, (There is a copy of it in this repo).

If you're having trouble executing the 'main' application, check your module path in your Project Settings. I found I had to manually set the module compile output path to '_build/default/lib/gilded_rose/ebin'. The test output path seemed to be correct as '.eunit'

Build

$ rebar3 compile

Run Tests

$ rebar3 eunit

TextTest Fixture

To run for 30 days, I think this ought to work but I tend to run it through the IDE instead:

$ erl -pa _build/default/lib/gilded_rose/ebin -pa . -eval main:main([30]). -s init stop -noshell