move test cases to priv/, retrieve location with code:lib_dir/2
This commit is contained in:
parent
62aef415e1
commit
338f79ec9a
89 changed files with 1 additions and 9 deletions
|
@ -1,7 +1,3 @@
|
|||
%% 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
|
||||
%% {eunit_opts, [verbose]}.
|
||||
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
%% 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
|
||||
%% {eunit_opts, [verbose]}.
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ encoder(Handler, State, Opts) -> jsx_encoder:encoder(Handler, State, Opts).
|
|||
|
||||
|
||||
jsx_decoder_test_() ->
|
||||
jsx_decoder_gen(load_tests(?eunit_test_path)).
|
||||
jsx_decoder_gen(load_tests(code:lib_dir(jsx, priv) ++ "/test_cases/")).
|
||||
|
||||
|
||||
encoder_decoder_equiv_test_() ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue