make tests runnable from basic rebar.config for users who have meck on path already
This commit is contained in:
parent
b5c2e3757b
commit
5155c96ac7
4 changed files with 8 additions and 3 deletions
|
@ -1,7 +1,12 @@
|
||||||
|
%% edit eunit_test_path if you want to run your own tests, use "../" not
|
||||||
|
%% "./" as rebar changes working dir to .eunit when running tests
|
||||||
|
{eunit_compile_opts, [{d, eunit_test_path, "../test/cases"}]}.
|
||||||
|
|
||||||
%% uncomment to get verbose output from test suite
|
%% uncomment to get verbose output from test suite
|
||||||
%% {eunit_opts, [verbose]}.
|
%% {eunit_opts, [verbose]}.
|
||||||
|
|
||||||
{erl_opts, [
|
{erl_opts, [
|
||||||
|
{i, "include"},
|
||||||
{i, "src"},
|
{i, "src"},
|
||||||
{src_dirs, ["src"]},
|
{src_dirs, ["src"]},
|
||||||
warn_unused_vars,
|
warn_unused_vars,
|
||||||
|
|
|
@ -40,7 +40,7 @@ decoder(Handler, State, Opts) ->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-include("../include/jsx_opts.hrl").
|
-include("jsx_opts.hrl").
|
||||||
|
|
||||||
|
|
||||||
%% whitespace
|
%% whitespace
|
||||||
|
|
|
@ -39,7 +39,7 @@ encoder(Handler, State, Opts) ->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-include("../include/jsx_opts.hrl").
|
-include("jsx_opts.hrl").
|
||||||
|
|
||||||
|
|
||||||
-ifndef(error).
|
-ifndef(error).
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
-export([extract_opts/1]).
|
-export([extract_opts/1]).
|
||||||
-export([json_escape/2]).
|
-export([json_escape/2]).
|
||||||
|
|
||||||
-include("../include/jsx_opts.hrl").
|
-include("jsx_opts.hrl").
|
||||||
|
|
||||||
|
|
||||||
%% parsing of jsx opts
|
%% parsing of jsx opts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue