use meck for testing
This commit is contained in:
parent
ff59289098
commit
c50f42a70c
4 changed files with 73 additions and 17 deletions
30
rebar.test.config
Normal file
30
rebar.test.config
Normal file
|
@ -0,0 +1,30 @@
|
|||
%% edit eunit_test_path if you want to run your own tests, use "../" not "./" as
|
||||
%% rebar changes to 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]}.
|
||||
|
||||
{erl_opts, [{i, "src"}, {src_dirs, ["src"]},
|
||||
warn_unused_vars,
|
||||
warn_export_all,
|
||||
warn_shadow_vars,
|
||||
warn_unused_import,
|
||||
warn_unused_function,
|
||||
warn_bif_clash,
|
||||
warn_unused_record,
|
||||
warn_deprecated_function,
|
||||
warn_obsolete_guard,
|
||||
strict_validation,
|
||||
warn_export_vars,
|
||||
warn_exported_vars]}.
|
||||
{dialyzer_opts, [{warnings, [unmatched_returns, error_handling, race_conditions, behaviours]}]}.
|
||||
{xref_checks, [undefined_function_calls]}.
|
||||
{cover_enabled, true}.
|
||||
|
||||
{deps, [
|
||||
{'meck',
|
||||
".*",
|
||||
{git, "git://github.com/eproxus/meck.git"}
|
||||
}
|
||||
]}.
|
Loading…
Add table
Add a link
Reference in a new issue