move test cases to priv/, retrieve location with code:lib_dir/2

This commit is contained in:
alisdair sullivan 2012-03-14 06:36:36 -07:00
parent 62aef415e1
commit 338f79ec9a
89 changed files with 1 additions and 9 deletions

View file

@ -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 %% uncomment to get verbose output from test suite
%% {eunit_opts, [verbose]}. %% {eunit_opts, [verbose]}.

View file

@ -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 %% uncomment to get verbose output from test suite
%% {eunit_opts, [verbose]}. %% {eunit_opts, [verbose]}.

View file

@ -106,7 +106,7 @@ encoder(Handler, State, Opts) -> jsx_encoder:encoder(Handler, State, Opts).
jsx_decoder_test_() -> 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_() -> encoder_decoder_equiv_test_() ->