Quick Erlang Snippet: Run EUnit Tests from the shell

While working through the code samples for Learn you some Erlang I found it helpful to quickly define and run some EUnit test cases. So far all the Erlang I did involved using rebar, but that didn’t make sense for code snippets so here is a simple command line for recompiling and running the unit tests for a module.

https://gist.github.com/sideshowcoder/9170939.js

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.